Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by cLive ;-) (Parson)
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 ;-)


Comment on Re: Answer: How do I send e-mail from my Perl Program?
Select or Download Code

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 web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2015-07-07 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls