Kate Yoak writes:

So what I am trying to do, is send mail from our webservers by doing the
following:
perl -MMIME::Lite -e '
        MIME::Lite->send(qw/smtp mail.domain.com Timeout  60 AuthUser
kate AuthPass pass/); my $msg = new MIME::Lite(From => "[EMAIL PROTECTED]",
Subject=>"Hello world", To=>"[EMAIL PROTECTED]", Data=>"Rainbows!");
$msg->send;  '

MIME::Lite requires MIME::Base64 and Authen::SASL to do authentication.
It uses Net::SMTP to do the actual connecting.

The script above is telling MIME::Lite to use
 smtp on my mail server, authenticating as a specific user with a
password.


Is this enough information, or do I need to dig further?

No, it's not. You need to show what does or does not happen when you do this.

Additionally, always enable "use strict" and "use warnings". If you did, the above Perl snippet is sure to generate a bunch of warning messages from Perl, that you should pay heed to.


Attachment: pgpCiWmzFcv4t.pgp
Description: PGP signature

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to