..


Sponsored Links

How to send mail from a Perl / CGI?

In Unix and Linux systems you can use the software sendmail for sending e-mail messages. We can then enrich our application Perl / CGI with the ability to send email with a simple listing in the code:






 # Code ...

 





 open (MAIL, "| / usr / lib / sendmail-t");

 





 print MAIL "To: $ recipient \ n";

 





 print MAIL "From: $ sender \ n";

 





 print MAIL "Subject: $ subject \ n";

 





 print MAIL "Body of the message .... \ n ';

 





 print MAIL "Message ... \ n";

 





 close (MAIL);

 





 # Code ...



In the same category ...
E-Learning
Linux (Course) Linux (Course)
Complete guide to open-source system. From 49 €.
MySQL (Course) MySQL (Course)
Management of open-source database. From 39 €.
PHP (Course) PHP (Course)
Full course for creating dynamic Web sites. From 49 €.
Sponsored Links