Gerard has asked for the wisdom of the Perl Monks concerning the following question:
Insists on transcribing the SMTP conversation to stdout. That is all very interesting, but all I really want to know is that it worked. I can do this easily enough. I am just wondering if there is an easy way to turn off this printing. ?? Anyone else that has used this before, any suggestions greatly appreciated. Regards, Gerardmy $smtp = Net::SMTP->new('smtp.orcon.net.nz', Timeout => 30, Debug => 1, ); $smtp->mail('no\@one.com'); $smtp->to(xxx\@yyy.com'); $smtp->data(); $smtp->datasend("To: xxx\@yyy.com\n"); $smtp->datasend("\n"); $smtp->datasend("A simple test message\n"); $smtp->dataend(); $smtp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net:SMTP Printing to STDOUT
by dws (Chancellor) on Nov 21, 2002 at 22:15 UTC | |
by Gerard (Pilgrim) on Nov 21, 2002 at 22:47 UTC | |
|
(bbfu) (how to tell if send was successful) Re: Net:SMTP Printing to STDOUT
by bbfu (Curate) on Nov 21, 2002 at 22:26 UTC |