Pearl79 has asked for the wisdom of the Perl Monks concerning the following question:
#!c:/Perl/bin/perl.exe -w use strict; use Mail::Sendmail; my $recipient = 'me@hotmail.com'; my $sender = 'me@officedomain.com'; my %mail = ( From => $sender, To => $recipient, Subject => "I'm sending you mail", Message => "This is the message body\n", smtp => 'smtp.officedomain.com' ); sendmail (%mail) or die "sendmail failure sending to $mail{To}: $!\n"; print "End of program.\n"; exit(0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Email beyond Domain
by Jenda (Abbot) on Nov 19, 2008 at 01:43 UTC | |
|
Re: Email beyond Domain
by hangon (Deacon) on Nov 19, 2008 at 01:49 UTC | |
by Anonymous Monk on Nov 19, 2008 at 08:16 UTC | |
|
Re: Email beyond Domain
by ig (Vicar) on Nov 19, 2008 at 03:58 UTC | |
by Pearl79 (Initiate) on Nov 20, 2008 at 01:04 UTC | |
by ig (Vicar) on Nov 20, 2008 at 06:06 UTC | |
by sasdrtx (Friar) on Nov 20, 2008 at 03:14 UTC | |
|
Re: Email beyond Domain
by sasdrtx (Friar) on Nov 19, 2008 at 02:47 UTC | |
|
Re: Email beyond Domain
by Popcorn Dave (Abbot) on Nov 19, 2008 at 07:05 UTC |