Computing.Net > Forums > Web Development > Send email in Perl

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Send email in Perl

Reply to Message Icon

Name: ShaqDiesel
Date: April 20, 2008 at 18:13:06 Pacific
OS: winXP
CPU/Ram: amd64/1Gb
Product: 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.



Sponsored Link
Ads by Google

Response Number 1
Name: FishMonger
Date: April 21, 2008 at 09:11:11 Pacific
Reply:

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.

MIME::Lite
http://search.cpan.org/author/RJBS/...

Net::SMTP
http://search.cpan.org/author/GBARR...

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.


0

Response Number 2
Name: ShaqDiesel
Date: May 4, 2008 at 22:00:27 Pacific
Reply:

thanks, but where can I find examples where I'm getting the information from a form? Is there an array in perl like $_REQUEST in PHP?

Are these modules built in with an installation of perl? I'm using XAMPP. If they aren't what folder am I supposed to download these modules to?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Send email in Perl

how to send email newsletters www.computing.net/answers/webdevel/how-to-send-email-newsletters/4036.html

Help with Order Form.........HTML www.computing.net/answers/webdevel/help-with-order-formhtml/1718.html

Sending Direct Email From Flash www.computing.net/answers/webdevel/sending-direct-email-from-flash/1522.html