You have to use the auth method defined in Net::SMTP, by doing this, you don't need to worry how to deal with the SASL (Simple Authentication and Security Layer).
$smtp->auth("myuid", "mypasswd");
MIME::Lite has a method called send_by_smtp, which allows you to pass parameters to the Net::SMTP object that MIME::Lite will create, but those are only the parameters will be passed to Net::SMTP->new, not the auth method we memtioned above.
MIME::Lite is mainly intended to allow you encode your mail msg, although it provided the send method as bonus, but it is never intended to be a full implementation of those RFC's. Even for msg encoding, it is not fully RFC-822 compliant.
If you are serious about the full implementation, the right way is only to use MIME::Lite as the MIME encoder, and to use Net::SMTP to deal with the mail server.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.