X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <1ff86f510803141735q184c64b7r62055de743e9337@mail.gmail.com> Date: Fri, 14 Mar 2008 20:35:22 -0400 From: "Jerry D. Hedden" To: cygwin AT cygwin DOT com Subject: Re: MIME::Lite Help In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: b8a2fa1c8a985d4f Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com > 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 -- 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/