Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How do you properly use sendmail?

by Juerd (Abbot)
on Aug 05, 2003 at 06:56 UTC ( [id://280898]=note: print w/replies, xml ) Need Help??


in reply to How do you properly use sendmail?

my $mailer = '/usr/sbin/sendmail -t -oi'; my $recipient = 'foo@bar.com'; my $message = '...'; open my $mailer, "|$mailer" or die $!; print $mailer <<"END" or die $!; From: user\@domain.com To: $recipient Subject: Testing 123 $message END close $mailer or die $!;
Remember to make sure all data that goes into the headers (just $recipient in this example) is valid.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-19 23:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found