| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <b89e390a0803150459v6a961ce3w6fbe5d30f99246f4@mail.gmail.com> |
| Date: | Sat, 15 Mar 2008 06:59:23 -0500 |
| From: | "Troy Bull" <troy DOT bull AT gmail DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: MIME::Lite Help |
| In-Reply-To: | <1ff86f510803141735q184c64b7r62055de743e9337@mail.gmail.com> |
| MIME-Version: | 1.0 |
| References: | <b89e390a0803141654m6e237f7dhdfd3f273360d1dc8 AT mail DOT gmail DOT com> <1ff86f510803141735q184c64b7r62055de743e9337 AT mail DOT gmail DOT com> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Fri, Mar 14, 2008 at 7:35 PM, Jerry D. Hedden <jdhedden AT cpan DOT 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 AT home DOT net',
> To => 'someone AT yahoo DOT com',
> Subject => "This is a test",
> Type => 'AUTO',
> Encoding => 'base64',
> Path => $file
> );
>
> $msg->send('sendmail', '/usr/sbin/ssmtp', 'someone AT yahoo DOT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |