jdtoronto has asked for the wisdom of the Perl Monks concerning the following question:

Esteemed monks,

I am preparing multipart MIME messages, currently using MIME::Entity. Both MIME::Entity and MIME::Lite ultimately rely on Net::SMTP to send the email (by SMTP anyway). But neither exposes the Net::SMTP object so I cannot call the ->auth method, thus I can't authenticate on the server.

Am I missing something?

It seems to me that I need to get the body out of the Entity and send it using Net::SMTP itself, any comments on how I should approach the problem?

jdtoronto

Replies are listed 'Best First'.
Re: SMTP authentication with MIME::Entity or MIME::Lite
by imp (Priest) on Aug 23, 2006 at 19:22 UTC
    MIME::Lite does support SMTP authentication, but the version you get when you search for MIME::Lite does not. Click on the latest version link to see version 3.01_05.

    Look for AuthUser

Re: SMTP authentication with MIME::Entity or MIME::Lite
by jdtoronto (Prior) on Aug 23, 2006 at 20:12 UTC
    Thanks imp,

    I had missed that, and the version coming through ActiveState is still 3.01 - so a manual update seems to be in order!

    jdtoronto