in reply to How to send mail from Perl/Tk Program?
$smtp = Net::SMTP->new($smtp_server_addr) or print $@;
$smtp->mail($fromAddress);
$smtp->to($toAddress);
$smtp->data();
$smtp->datasend("To: God\n");
$smtp->datasend("Subject: Thanks for perl\n");
$smtp->datasend("\n");
#@body is list of strings(lines of message)
$smtp->datasend(\@body);
$smtp->dataend();
$smtp->quit
¥peace from CaMelRyder¥
- Comment on Re: How to send mail from Perl/Tk Program?
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to send mail from Perl/Tk Program?
by blazar (Canon) on Apr 11, 2007 at 07:49 UTC | |
|
Re^2: How to send mail from Perl/Tk Program?
by mikasue (Friar) on Apr 18, 2007 at 12:26 UTC |