meenac has asked for the wisdom of the Perl Monks concerning the following question:
use Net::SMTP; # connect to an SMTP server $smtp = Net::SMTP->new('SMTP Server'); $smtp->mail( "sender address" ); $smtp->to("receipient address"); $smtp->data(); $smtp->datasend("To: receipient address"\n"); $smtp->datasend("From: sender address\n"); $smtp->datasend("Subject : Analysis Summary\n"); $smtp->datasend('c:\temp\analysis.csv'); $smtp->datasend(); $smtp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Add Subject and timestamp to email
by friedo (Prior) on Dec 29, 2004 at 16:22 UTC | |
by meenac (Initiate) on Dec 29, 2004 at 17:46 UTC | |
|
Re: Add Subject and timestamp to email
by Crackers2 (Parson) on Dec 29, 2004 at 17:43 UTC |