perlboy has asked for the wisdom of the Perl Monks concerning the following question:
Is there a function that indicates if a send mail operation is successful or not? Kindly look at the code snippet below:
can i insert a function here that indicates if operation is successful (e.g., if $email_msg is not in the mail list) $smtp->quit(); Thank you for your kind response.$smtp = Net::SMTP->new(servername); $smtp->mail($ENV{REMOTE_HOST}); $smtp->to($email_address); $smtp->data(); $smtp->datasend("To: " . $what_ever); $smtp->datasend("From: name\@xxxx.com \n"); $smtp->datasend("Subject: whatever"); $smtp->datasend("\n"); $smtp->datasend($email_msg); $smtp->dataend();
Edit: chipmunk 2001-05-29
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Net::SMTP
by blue_cowdawg (Monsignor) on May 29, 2001 at 18:59 UTC | |
Re: Net::SMTP
by Beatnik (Parson) on May 29, 2001 at 19:08 UTC |
Back to
Seekers of Perl Wisdom