Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: CC with sendmail?

by akuk (Beadle)
on Mar 26, 2020 at 05:14 UTC ( [id://11114658]=note: print w/replies, xml ) Need Help??


in reply to CC with sendmail?

Can you try this:
#!/usr/bin/perl use strict; use warnings; my $to ="recipent\@xyz.com"; my $cc = "copied\@xyz.com"; my $from = "noreply\@xyz.com"; my $subject = "You have got mail"; my $message = "Hello Admin\n\nHow are you doing today\n\nRegards,\n\An +onymous"; # send email using UNIX/Linux sendmail open(MAIL, "|/usr/sbin/sendmail -t"); ## Mail Header print MAIL "To: $to\n"; print MAIL "Cc: $cc\n"; print MAIL "From: $from\n"; print MAIL "Subject: $subject\n"; ## Mail Body print MAIL $message; # Close close(MAIL);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-29 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found