Perl-Sensitive Sunglasses | |
PerlMonks |
Re^7: Authenticate emailby Happy-the-monk (Canon) |
on Mar 04, 2015 at 20:53 UTC ( [id://1118795]=note: print w/replies, xml ) | Need Help?? |
Attempting is the word. Without the code, what can I try to say? You could search your code for the word "auth". If you find that, maybe you are near. If you don't find it, you may find a ... = Net::SMTP->new . . . somewhere, and look at what it says on the left hand side of the "=". You may remember it from the documentation, where it says $smtp = Net::SMTP->new . . ., so let's assume it does say $smtp . You may then add a new line below that one that goes $smtp->auth( "USERNAME", "PASSWORD" ); and replace USERNAME and PASSWORD with the real ones. Check if it does any good. If it works the way you expect, worry some about your secrets now residing on the remote webserver and if that means, other people with access to that server can now also use your email server... Cheers, Sören Créateur des bugs mobiles - let loose once, run everywhere.
In Section
Seekers of Perl Wisdom
|
|