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
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)
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? ;)
my $msg = MIME::Lite->new(
Cc =>'email@example.com, firstname.lastname@example.org',
Subject =>'Helloooooo, nurse!',
Data =>"How's it goin', eh?"