This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: MIME::Lite Help
On Fri, Mar 14, 2008 at 7:35 PM, Jerry D. Hedden <jdhedden@cpan.org> wrote:
> > The problem
> > is that I usually use MIME::Lite to send emails from various perl
> > tasks.
>
> 1. Install ssmtp from Cygwin.
> 2. Run /usr/bin/ssmtp-config to configure.
> 3. If needed edit the config file
> /etc/ssmtp/ssmtp.conf)
> and add your mail hub. For example:
> mailhub=smtp.comcast.net:587
> 4. In Perl, you use:
>
> my $msg = MIME::Lite->new(
> From => 'me@home.net',
> To => 'someone@yahoo.com',
> Subject => "This is a test",
> Type => 'AUTO',
> Encoding => 'base64',
> Path => $file
> );
>
> $msg->send('sendmail', '/usr/sbin/ssmtp', 'someone@yahoo.com');
>
> Good luck
>
Thanks, this worked like a charm, got it on the first attempt!
Troy
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/