in reply to ESMTP, linefeed and <CRLF>

You might want to go to a higher level module Net::SMTP which has this all worked out already. This module comes standard with libnet

You can see the example code is much cleaner and smaller

#!/usr/local/bin/perl -w use Net::SMTP; $smtp = Net::SMTP->new('mailhost'); $smtp->mail($ENV{USER}); $smtp->to('postmaster'); $smtp->data(); $smtp->datasend("To: postmaster\n"); $smtp->datasend("\n"); $smtp->datasend("A simple test message\n"); $smtp->dataend(); $smtp->quit;
Update: you can Install modules into your home directory

grep
Just me, the boy and these two monks, no questions asked.

Replies are listed 'Best First'.
Re: Re: ESMTP, linefeed and <CRLF>
by Anonymous Monk on Jul 26, 2002 at 06:57 UTC
    I tried your way and it worked fine.

    But i'm still wondering what this SMTP <crlf> error is?

    Thank's for your help !