[quote user="houston"]
Yes you're right, outlook express sent e-mails properly. I guess I didn't bollux the syntax but I'm lacking enough knowledge. AFAIK, a proper telnet SMTP session operates like this as you can find as the first entry in a search engine:
helo hostname
mail from: sender@domain.com
rcpt to: recipient@example.com
data
"write down Subject, To, Cc, mail body here"
<crlf>.<crlf>
Should I read all the RFC821 :S
Thanks anyway,
Ustun
[/quote]
IAW the RFC the MAIL FROM: and RCPT TO: addresses must be in <>. The message ends with a period<CR><LF> Here's a WinPMail SMTP (not ESMTP) session log showing the entire operation using old email addresses from a ISP that not longer exists.
--- Sat, 20 Jun 1998 15:04:12 ---
Connect to 'scruznet.com', timeout 90.
15:04:13 >> 220 scruz.net ESMTP Sendmail 8.8.5/1.34 ready at Sat, 20 Jun 1998 15:04:14 -0700 (PDT)\0D\0A
15:04:13 << HELO thomas.lmms.lmco.com\0D\0A
15:04:13 >> 250 scruz.net Hello stephens.sj.scruznet.com [165.227.102.91], pleased to meet you\0D\0A
15:04:13 << MAIL FROM:<stephens@scruznet.com>\0D\0A
15:04:14 >> 250 <stephens@scruznet.com>... Sender ok\0D\0A
15:04:14 << RCPT TO:<stephens@scruznet.com>\0D\0A
15:04:14 >> 250 <stephens@scruznet.com>... Recipient ok\0D\0A
15:04:14 << DATA\0D\0A
15:04:14 >> 354 Enter mail, end with "." on a line by itself\0D\0A
15:04:14 << From: "Thomas Stephenson" <stephens@scruznet.com>\0D\0A
15:04:14 << To: stephens@scruznet.com\0D\0A
15:04:14 << Date: Sat, 20 Jun 1998 15:04:12 -0700\0D\0A
15:04:14 << MIME-Version: 1.0\0D\0A
15:04:14 << Content-type: text/plain; charset=US-ASCII\0D\0A
15:04:14 << Content-transfer-encoding: 7BIT\0D\0A
15:04:14 << Subject: test\0D\0A
15:04:14 << Priority: normal\0D\0A
15:04:14 << X-mailer: Pegasus Mail for Win32 (v3.01b)\0D\0A
15:04:14 << \0D\0A
15:04:14 << test message body\0D\0A
15:04:14 << \0D\0A
15:04:14 << .\0D\0A
15:04:15 >> 250 PAA08117 Message accepted for delivery\0D\0A
15:04:15 << QUIT\0D\0A
15:04:15 >> 221 scruz.net closing connection\0D\0A
--- Connection closed normally at Sat, 20 Jun 1998 15:04:15. -
[quote user="houston"]<p>Yes you're right, outlook express sent e-mails properly. I guess I didn't bollux the syntax but I'm lacking enough knowledge. AFAIK, a proper telnet SMTP session operates like this as you can find as the first entry in a search engine:</p><p>helo hostname</p><p>mail from: sender@domain.com</p><p>rcpt to: recipient@example.com&nbsp;</p><p>data</p><p>"write down Subject, To, Cc, mail body here"
</p><p>&lt;crlf&gt;.&lt;crlf&gt;</p><p>&nbsp;Should I read all the RFC821 :S</p><p>Thanks anyway,</p><p>Ustun&nbsp;</p><p>[/quote]</p><p>&nbsp;</p><p>IAW the RFC the MAIL FROM: and RCPT TO: addresses must be in &lt;&gt;.&nbsp; The message ends with a period&lt;CR&gt;&lt;LF&gt;&nbsp; Here's a WinPMail SMTP (not ESMTP) session log showing the entire operation using old email addresses from a ISP that not longer exists.</p><p>&nbsp;</p>--- Sat, 20 Jun 1998 15:04:12 ---
Connect to 'scruznet.com', timeout 90.
15:04:13 &gt;&gt; 220 scruz.net ESMTP Sendmail 8.8.5/1.34 ready at Sat, 20 Jun 1998 15:04:14 -0700 (PDT)\0D\0A
15:04:13 &lt;&lt; HELO thomas.lmms.lmco.com\0D\0A
15:04:13 &gt;&gt; 250 scruz.net Hello stephens.sj.scruznet.com [165.227.102.91], pleased to meet you\0D\0A
15:04:13 &lt;&lt; MAIL FROM:&lt;stephens@scruznet.com&gt;\0D\0A
15:04:14 &gt;&gt; 250 &lt;stephens@scruznet.com&gt;... Sender ok\0D\0A
15:04:14 &lt;&lt; RCPT TO:&lt;stephens@scruznet.com&gt;\0D\0A
15:04:14 &gt;&gt; 250 &lt;stephens@scruznet.com&gt;... Recipient ok\0D\0A
15:04:14 &lt;&lt; DATA\0D\0A
15:04:14 &gt;&gt; 354 Enter mail, end with "." on a line by itself\0D\0A
15:04:14 &lt;&lt; From: "Thomas Stephenson" &lt;stephens@scruznet.com&gt;\0D\0A
15:04:14 &lt;&lt; To: stephens@scruznet.com\0D\0A
15:04:14 &lt;&lt; Date: Sat, 20 Jun 1998 15:04:12 -0700\0D\0A
15:04:14 &lt;&lt; MIME-Version: 1.0\0D\0A
15:04:14 &lt;&lt; Content-type: text/plain; charset=US-ASCII\0D\0A
15:04:14 &lt;&lt; Content-transfer-encoding: 7BIT\0D\0A
15:04:14 &lt;&lt; Subject: test\0D\0A
15:04:14 &lt;&lt; Priority: normal\0D\0A
15:04:14 &lt;&lt; X-mailer: Pegasus Mail for Win32 (v3.01b)\0D\0A
15:04:14 &lt;&lt; \0D\0A
15:04:14 &lt;&lt; test message body\0D\0A
15:04:14 &lt;&lt; \0D\0A
15:04:14 &lt;&lt; .\0D\0A
15:04:15 &gt;&gt; 250 PAA08117 Message accepted for delivery\0D\0A
15:04:15 &lt;&lt; QUIT\0D\0A
15:04:15 &gt;&gt; 221 scruz.net closing connection\0D\0A
--- Connection closed normally at Sat, 20 Jun 1998 15:04:15. -<p>&nbsp;</p>