Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Mail::Sendmail Module

by hippo (Bishop)
on Feb 26, 2018 at 16:19 UTC ( [id://1209984]=note: print w/replies, xml ) Need Help??


in reply to Mail::Sendmail Module

$mail{Auth} = {user => "username", pass => "password", method => "LOGIN", required => 1};

This will have no effect. There is no "Auth" key mentioned anywhere in the documentation which specifically says "No suport (sic) for the SMTP AUTH extension". If you need this, consider some other module.

Update: As toolic says in the reply below there is now an "Auth" key in version 0.80 although the doc says the support is experimental. YMMV.

Replies are listed 'Best First'.
Re^2: Mail::Sendmail Module
by toolic (Bishop) on Feb 26, 2018 at 19:07 UTC
    This will have no effect. There is no "Auth" key mentioned anywhere in the documentation
    Are you sure? The POD does not explicitly show $mail{Auth}, but it states:
    Keys are NOT case-sensitive.

    I see this in the sendmail code:

    # arrange keys case $k = ucfirst lc($k);

    I have a feeling that $mail{Auth} is the same as $mail{auth}.

      Well it turns out that you are quite right. There has been a new release of Mail::Sendmail which adds "auth" as a field and is the first stable release in some 15 years (v0.80 has the auth field, v0.79 doesn't). That will teach me to assume it was abandoned.

      The comment in the docs now says "Experimental SMTP AUTH support (LOGIN PLAIN CRAM-MD5 DIGEST-MD5)", so that's the progress. Thanks for the heads-up.

Re^2: Mail::Sendmail Module
by ytjPerl (Scribe) on Feb 26, 2018 at 16:29 UTC
    what other module do you recommend? I have been told this was the latest updated one.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1209984]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found