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)