Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^4: getting SMTP failure codes

by Anonymous Monk
on Feb 06, 2011 at 20:44 UTC ( #886553=note: print w/ replies, xml ) Need Help??

in reply to Re^3: getting SMTP failure codes
in thread getting SMTP failure codes

How do i run this script on a root ? use Net::SMTP; $smtp = Net::SMTP->new( Host => '', Debug => 1, ); $smtp -> mail("root\"); @good = $smtp -> recipient('good_address@my.home','bad_address@my.home +',{ SkipBad => 1, Notify => ['FAILURE']}); $smtp -> data(); $smtp -> datasend("TO: good_address@my.home\n"); $smtp -> datasend("TO: bad_address@my.home\n"); $smtp -> datasend("SUBJECT: Test e-mail from root\n"); $smtp -> datasend("\n"); $smtp -> datasend("A test message.\n"); $smtp -> dataend(); print "These addresses went: @good\n"; $smtp -> quit();

Comment on Re^4: getting SMTP failure codes
Download Code
Replies are listed 'Best First'.
Re^5: getting SMTP failure codes
by Corion (Pope) on Feb 06, 2011 at 20:46 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://886553]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2015-11-25 14:48 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (679 votes), past polls