in reply to Strange Situation with Net::SMTP
use Net::SMTP; $smtp = Net::SMTP->new('mail.telus.net'); $smtp->mail('p@abc.com'); #$smtp->to('p@abc.com'); #this one works, assume p@abc.com exists #$smtp->to("p@abc.com"); #this one doesn't work, as Perl will try to r +esolve @abc for you #$smtp->to('p\@abc.com'); #this one does not work, as Perl see the add +ress as p\@abc.com (assume that this address does not exist) #$smtp->to("p\@abc.com"); #this one works, as we escaped that @ $smtp->data(); $smtp->datasend("To: Peter\n"); $smtp->datasend("\n"); $smtp->datasend("test\n"); $smtp->dataend(); $smtp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Strange Situation with Net::SMTP
by CodeJunkie (Monk) on Mar 25, 2003 at 21:05 UTC | |
by pg (Canon) on Mar 25, 2003 at 22:58 UTC | |
by phydeauxarff (Priest) on Mar 25, 2003 at 22:45 UTC |