in reply to perl socket mail
2 pieces of advice:
-
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.
-
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? ;)
|