Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: emailing form results to a user

by LTjake (Prior)
on Aug 09, 2002 at 15:22 UTC ( [id://188939]=note: print w/replies, xml ) Need Help??


in reply to emailing form results to a user

This isn't really a solution, but rather an alternative. Instead of using linux's sendmail, try the Mail::Sendmail module. It's a "simple platform independent mailer." Thus, it makes your program more portable should you wish to change your current OS. I've used it on both Windows and Linux with great success. Here's a code sample:
use Mail::Sendmail; # Create the message hash my %mail = ( To => 'You <your@address.com>', # To address.. From => 'Me <my@address.com>', # From address.. Message => 'Hello, world!', # The message body.. Smtp => 'your.mail.server' # erase this if you want to use "loc +alhost" (default) ); # Send the message unless (sendmail(%mail)) { # Error! } # All is well.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-18 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found