SPUG: Send email from XP
Gary Hawkins
ghawk at eskimo.com
Wed Jun 4 20:56:41 PDT 2008
On both Linux and XP, I...
use Mail::Sendmail; # http://alma.ch/perl/mail.htm
sendmail(
Smtp => 'somesmtp.domain.com',
From => 'me at domain.com',
To => 'someone1 at domain.com,someone2 at domain.com',
Subject => 'something',
Message => qq~
tons of stuff as html
~,
'content-type' => 'text/html'
);
if ( $Mail::Sendmail::error ) {
print "$Mail::Sendmail::error\n";
}
else {
print "MAIL SENT\n";
}
Gary
> -----Original Message-----
> From: spug-list-bounces+ghawk=eskimo.com at pm.org [mailto:spug-list-
> bounces+ghawk=eskimo.com at pm.org] On Behalf Of Ron Pero
> Sent: Wednesday, June 04, 2008 3:34 PM
> To: spug-list at pm.org
> Subject: SPUG: Send email from XP
>
> Hi
>
> I've batted around CPAN for a while trying to find a module that lets me send
> an email from the
> Windows XP platform. No luck. Or rather, there are many possibilities, but
> it's a big search. The
> one I tried, Mail::DWIM fails on XP.
>
> So let's jump to the chase: please let me know how you send emails from perl
> on the Windows XP platform.
>
> Much obliged.
>
> Ron
> _____________________________________________________________
> Seattle Perl Users Group Mailing List
> POST TO: spug-list at pm.org
> SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
> MEETINGS: 3rd Tuesdays
> WEB PAGE: http://seattleperl.org/
More information about the spug-list
mailing list