in reply to Re^3: Sending email in perl
in thread Sending email in perl
#!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); print "Content-type: text/html\n\n"; use Net::SMTP; $smtp = Net::SMTP -> new('mail.ffinfo.com'); $smtp -> auth('UID', 'PASS'); $smtp -> mail('ffxils ffinfo.com'); $smtp -> to('ffxils ffinfo.com'); $smtp -> data(); $smtp -> datasend("To: \"Crystal Reverine Admins\" <ffxils\@ffinfo.com +>\r\n"); $smtp -> datasend("From: \"Crystal Reverine Registration Script\" <ffx +ils\ ffinfo.com>\r\n"); $smtp -> datasend("X-Mailer: Crystal Rebberine Registration Script Net +::SMTP\r\n"); $smtp -> datasend("Subject: New Member Reqestrations\r\n"); $smtp -> datasend("\r\n"); $smtp -> datasend('A new member has registered at the LS website and i +s waiting for approval. Please click on the below link to get a list +of all waiting members'); $smtp -> dataend(); $smtp -> quit();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Sending email in perl
by GrandFather (Saint) on Sep 16, 2005 at 01:04 UTC | |
by Eagle_f91 (Acolyte) on Sep 16, 2005 at 02:05 UTC | |
by GrandFather (Saint) on Sep 16, 2005 at 02:27 UTC | |
by Eagle_f91 (Acolyte) on Sep 16, 2005 at 03:09 UTC | |
|
Re^5: Sending email in perl
by BaldPenguin (Friar) on Sep 16, 2005 at 14:46 UTC |