On 15/07/00 10:40 +0530, UK Jaiswal spewed into the LI bitstream:
>Could somebody pls explain the syntaxes to follow if one wants to send a
>mail by telnetting to the port 25 of ones mailserver.
>I tried to copy sytaxes from the result of sendmail -v ... but got stuck
>up after the line:
> " 354 Start mail input; end with <CRLF>.<CRLF> "
Here is where you start typing the body in .....
>>>> DATA
>354 Start mail input; end with <CRLF>.<CRLF>
>>>> Hi!
>>>>
>>>> How are you?
>>>> Blah Blah Blah
>>>>
>>>> -UK
>>>> .
[just type a fullstop and press the enter key]
> 250 250 LAAAA26606 Message accepted for delivery
>>>> QUIT
> 221 your.smtp.server.com closing connection
That's all folks ;)
Of course, if you are trying to do this on a server which does not relay
for you, the
rcpt to:<foo@bar>
will produce
550 Get lost - we don't relay [or whatever]
Only the error number counts btw - the mesg can be 'Fsck off you spammer'
or whatever ;)
--
Suresh Ramasubramanian + [EMAIL PROTECTED]
Never offend people with style when you can offend them with
substance.
-- Sam Brown, "The Washington Post", January 26, 1977
-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH