Unfortunately, MIME::Lite requires Sendmail on the host.
----- Original Message ----- From: "Daniel Staal" <[EMAIL PROTECTED]> To: "Perl Beginners" <[EMAIL PROTECTED]> Sent: Tuesday, February 17, 2004 5:26 PM Subject: Re: connecting to a mail server via IMAP > --As of Tuesday, February 17, 2004 4:58 PM +0200, John is alleged to have > said: > > > Here is my code > > Thanks. ;-) > > >#!/usr/bin/perl -w > > use strict; > > > use Mail::Sender; > > $sender = new Mail::Sender({smtp => 'mymailserver', from => > > '[EMAIL PROTECTED]'}); > > $sender->MailFile({to => '[EMAIL PROTECTED]', > > subject => 'Here is the file', > > msg => "I'm sending you the list you wanted."}); > > > > > > john, john2 usernames exist on the mymailserver (it runs ESMTP Sendmail > > 8.9.3/8.9.3) > > Well, you are missing a 'send' call; Mail::Sender has several you can > choose from, depending on your needs. > > By the way, as others pointed out Mail::Sender is very low-level. I would > suggest a higher level module here. MIME::Lite is highly regarded, and > often overlooked while searching... > > Daniel T. Staal > > --------------------------------------------------------------- > This email copyright the author. Unless otherwise noted, you > are expressly allowed to retransmit, quote, or otherwise use > the contents for non-commercial purposes. This copyright will > expire 5 years after the author's death, or in 30 years, > whichever is longer, unless such a period is in excess of > local copyright law. > --------------------------------------------------------------- > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>