Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 the monks are mute...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2017-09-22 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (260 votes). Check out past polls.

    Notices?