Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Answer: How do you properly use sendmail?

by Juerd (Abbot)
on Aug 05, 2003 at 06:56 UTC ( #280898=categorized answer: print w/replies, xml ) Need Help??

Q&A > mail and news > How do you properly use sendmail? - Answer contributed by Juerd

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
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2016-12-03 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (55 votes). Check out past polls.