Name: ShaqDiesel Date: April 20, 2008 at 18:13:06 Pacific Subject: Send email in Perl OS: winXP CPU/Ram: amd64/1Gb Model/Manufacturer: custom
Comment:
I have a web form whose user input I want to recieve in email form when the user clicks on submit. I'm working in a windows environment and using apache. I know how to do this in php, but can someone show me how to do this in perl 5? A simple html form and cgi script example would be very helpful. Thank you.
There are a number of mail modules on cpan that are used for sending email. Most of the time I use MIME::Lite but occasionally I use Net::SMTP which is a core module.
However, if this is a web form used on the Internet, you should make sure you correctly setup the form and validation of the fields so that your form doesn't become a spam relay.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE