How Do I Email .txt Files?
Author |
Message |
Cervantes
|
Posted: Sun Jul 16, 2006 10:17 pm Post subject: (No subject) |
|
|
vahnx wrote: I don't think you can send emails through Turing, if so, why doesn't anyone post some code up that does it.
A) I think you can.
B) If someone is interested in doing this, they will. Realize that it takes some time to help you with this, because most of us haven't dabbled with the SMTP protocol ourselves. You're the first to do this with Turing. You're a pioneer.
Well, you're not a pioneer yet. You haven't done it yet. So get that brain cracking. Do it yourself and you'll have something to be proud of.
Don't be afraid to look for resources other than wikipedia. Don't be afraid to look at code in other languages. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
MysticVegeta
|
|
|
|
|
[Gandalf]
|
Posted: Mon Jul 17, 2006 12:34 am Post subject: (No subject) |
|
|
/me sighs but refrains from contradicting Cervantes.
vahnx, you send it the client parts of a "conversation" between SMTP client and server. As shown in the dialogue in that Wikipedia article, you have to follow the protocol and send the right messages. You can get a lot more from that article than what the acronym stands for...
And I will tell you for the fourth time, you will not be connecting the gmail.com as per:
code: | var stream := Net.OpenConnection ("www.gmail.com", 25) |
You will be connecting to the Google smtp server.
To recieve more help, show me that you can actually learn something without it being handed right to you, and ask specific questions. |
|
|
|
|
|
MysticVegeta
|
Posted: Mon Jul 17, 2006 11:19 am Post subject: (No subject) |
|
|
Vahnx, the second link I sent you also stated it that the smtp server of google is:
Quote: smtp.google.com Just look it out |
|
|
|
|
|
Guest
|
Posted: Mon Jul 17, 2006 4:01 pm Post subject: (No subject) |
|
|
Ok I'll try this later. So I look at your second link and I should find out how. Cool. I'll check it out! |
|
|
|
|
|
Reals
|
Posted: Sat Jul 22, 2006 4:32 pm Post subject: (No subject) |
|
|
I dont think this will work, becuase dont you have do have a secure connection TLS ?!?! I tried to do it in Telnet with my ISP and thats what they told me. I'm sure if i can get it to work in Telnet i could write a program in Turing to do it for me. Any Idea's? |
|
|
|
|
|
Reals
|
|
|
|
|
Reals
|
Posted: Sat Jul 22, 2006 5:18 pm Post subject: (No subject) |
|
|
1 More thing, Dont you have to login with a user name and password somewhere when using telnet for smtp?!? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Reals
|
Posted: Sun Jul 23, 2006 1:35 pm Post subject: (No subject) |
|
|
ok through some more research i got my program to connect to the smtp server, login with base64 encoded, it tells the smtp server who it's from and who to send it to. after that it tells me to write the body of the e-mail, i put in a messgae and i get an error after i'm done, the smtp server giving me a link and on the web site it says the problem is that i'm sending bare LF. and it needs to be in crlf format. How can i fix this?
This is the link it gave me http://cr.yp.to/docs/smtplf.html
Thanks |
|
|
|
|
|
r.3volved
|
Posted: Sun Jul 23, 2006 4:36 pm Post subject: (No subject) |
|
|
Try this then...
1. Telnet into an smtp service running from wherever you can find one. (most server admins don't lock this off, so you should be able to find an open one in your first google search)
2. Start messing with commands. Apply the knowledge you gained from reading the above postings about protocol and start sending mail to yourself.
Just as the dialogue that was posted earlier, do it in telnet using either the windows telnet client or putty (using RAW formatting)
3. Once you figure out how to successfully send mail via smtp over telnet then you simply have to design your application to automate everything you did by hand.
You don't know enough about the problem yet to design a successful solution. |
|
|
|
|
|
Reals
|
Posted: Sun Jul 23, 2006 5:55 pm Post subject: (No subject) |
|
|
It works for me tho telnet, just not in my program for some reason, it has to be in ASCII text or something (MiME). |
|
|
|
|
|
[Gandalf]
|
Posted: Sun Jul 23, 2006 9:00 pm Post subject: (No subject) |
|
|
Once you figure out what <cr><lf> means, it's as simple as adding two characters to your code.
Note: The solution is the same is most languages, it's not Turing specific. |
|
|
|
|
|
Reals
|
Posted: Sun Jul 23, 2006 9:25 pm Post subject: (No subject) |
|
|
umm <CR> is Carriage Return and <LF> is Line Feed, i understand that now, looks like it used for printers. umm but i still have no idea how to use this, i need an example. do you type it like this "cheese"<CR>.<LF>" ?? |
|
|
|
|
|
r.3volved
|
Posted: Sun Jul 23, 2006 9:42 pm Post subject: (No subject) |
|
|
I haven't used turing since I learned a real language, but read an ascii chart and find out the ascii code for both cr and lf
You should have an ascii chart bookmarked in your browser if you're a coder...otherwise copy it into a text file somewhere
...otherwise, most languages allow you to append \r\n to your string variable for carriage return and linefeed |
|
|
|
|
|
Guest
|
Posted: Mon Jul 24, 2006 12:33 am Post subject: (No subject) |
|
|
What the hell are you guys all talking about? Does this stuff have anything to do using Turing to send a simple message to an email? |
|
|
|
|
|
|
|