Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl use warnings; use strict; use lib '/usr/home/myname/Mail/Mailer/'; use Mail::Sendmail; my %mailurl = ( To => 'tomail@here.com', From => 'frommail@here.com' ); $mailurl{smtp} = '111.111.1.11'; print "unix test.\n"; $mailurl{'Subject'} = "UNIX test"; $mailurl{'Message'} = "test only."; sendmail(%mailurl) || die "\n smtp problem! $Mail::Sendmail::error\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Loading sendmail module
by jey (Pilgrim) on Jan 29, 2004 at 16:31 UTC | |
by Anonymous Monk on Jan 29, 2004 at 17:32 UTC | |
by jey (Pilgrim) on Jan 29, 2004 at 18:08 UTC | |
by Anonymous Monk on Jan 29, 2004 at 18:46 UTC | |
|
Re: Loading sendmail module
by Fletch (Bishop) on Jan 29, 2004 at 16:33 UTC | |
|
Re: Loading sendmail module
by blue_cowdawg (Monsignor) on Jan 29, 2004 at 16:37 UTC |