mineiro has asked for the wisdom of the Perl Monks concerning the following question:
use Mail::Sender; $To = $ARGV[0]; # Here is passed a valid email-address $From = $ARGV[1]; # Here is passed a valid email-address $Server = $ARGV[2]; # Here is passed a server ip address that d +oesnt need login authentification $Subject = $ARGV[3]; # Passed a string "subject test" $Body = $ARGV[4]; # Passed a string "body test" $Attach = $ARGV[5]; # Here receive a c:\temp\testatt.txt and th +is file exists $Cc = ""; $sender = new Mail::Sender { smtp => $Server, from => $From}; $sender->MailFile({ to => $To, subject => $Subject, msg => $Body, file => $Attach}); $sender->Close;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Windows 2000 PRO can't send email using Mail-Sender
by ww (Archbishop) on Apr 01, 2005 at 21:38 UTC | |
by mineiro (Novice) on Apr 04, 2005 at 13:16 UTC | |
by ww (Archbishop) on Apr 07, 2005 at 17:40 UTC |