Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Form mail script

by neilwatson (Priest)
on Aug 21, 2002 at 15:54 UTC ( [id://191776]=note: print w/replies, xml ) Need Help??


in reply to Form mail script

Mail::Sender is my friend; snippet:

sub mailout{ $sender = new Mail::Sender; $sender->Open({ smtp => 'mail', from => "$from", fake_from => "$from", to => "nobody\@mydomain.com", bcc => "$to", encoding => "quoted-printable", subject => "$subject", ctype => "$htype", }) || die "Sender error: $sender, $Mail::Sender::Error!\n"; # body of email $sender->SendEnc(@body) || die "Sender error: $sender, $Mail::Send +er::Error!\n"; # send email $sender->Close || die "Sender error: $sender, $Mail::Sender::Error +!\n"; }

Neil Watson
watson-wilson.ca

Log In?
Username:
Password:

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

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

    No recent polls found