Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Answer: How do I send e-mail from my Perl Program?

by cLive ;-) (Prior)
on Jan 14, 2002 at 10:16 UTC ( #138528=note: print w/replies, xml ) Need Help??


in reply to Answer: How do I send e-mail from my Perl Program?
in thread mail and news

Small error:
my $smtp = Net::SMTP->new('$mailserver_url') or die $!;
should be:
my $smtp = Net::SMTP->new($mailserver_url) or die $!;
or
my $smtp = Net::SMTP->new("$mailserver_url") or die $!;
Single quotes aren't interpolated!

cLive ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://138528]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2017-07-22 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (340 votes). Check out past polls.