qadwjoh has asked for the wisdom of the Perl Monks concerning the following question:
...but can't work out how to read emails.use Net::SMTP; unless ($smtp = Net::SMTP->new('mailhost')) { print "Fail\n"; } # print domain print $smtp->domain,"\n"; # send test email $smtp->mail($ENV{USER}); $smtp->to('phil@philvickery.com'); $smtp->data(); $smtp->datasend('To: phil@philvickery.com\n'); $smtp->datasend("\n"); $smtp->datasend("A simple test message\n"); $smtp->dataend(); $smtp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading email on Exchange
by peschkaj (Pilgrim) on Jul 24, 2003 at 18:30 UTC | |
by qadwjoh (Scribe) on Jul 24, 2003 at 19:02 UTC | |
by dtr (Scribe) on Jul 24, 2003 at 20:43 UTC | |
|
Re: Reading email on Exchange
by blue_cowdawg (Monsignor) on Jul 24, 2003 at 18:27 UTC | |
by qadwjoh (Scribe) on Jul 24, 2003 at 18:59 UTC | |
by blue_cowdawg (Monsignor) on Jul 24, 2003 at 19:12 UTC |