Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: perl socket mail

by jeffa (Bishop)
on Dec 21, 2003 at 05:22 UTC ( [id://316143]=note: print w/replies, xml ) Need Help??


in reply to perl socket mail

2 pieces of advice:
  1. If you want to really learn about network programming in Perl, get Network Programming with Perl and read/program away. It's worth every penny.
  2. If you just want to send an email, or more importantly, you are seriously going to need to plug email submissions in your CGI app, then use MIME::Lite. It's as easy as: (straight from the docs)
    my $msg = MIME::Lite->new( From =>'me@myhost.com', To =>'you@yourhost.com', Cc =>'some@other.com, some@more.com', Subject =>'Helloooooo, nurse!', Data =>"How's it goin', eh?" ); $msg->send;
    Really. Raw socket programming is worth learning, but after you do learn how to unclog the pipes to your toliet, do you really want to keep Doing It The Hard Way? ;)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found