in reply to using the Mailer / sendmail perl module...
sub Mail { my ( $Msg ) = @_; my $Hdr = "From: Speaker to Users\n". "To: <user\@host.com>\n". "Subject: End of Day problems\n\n"; open( SENDMAIL, "|/usr/lib/sendmail -oi -t -odq") or die( "Can't fork for sendmail: $! \n" ); print SENDMAIL $Hdr.$Msg; close(SENDMAIL) or warn "sendmail didn't close correctly!"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using the Mailer / sendmail perl module...
by Anonymous Monk on Oct 08, 2007 at 15:09 UTC | |
by apl (Monsignor) on Oct 08, 2007 at 16:32 UTC |