This is driving me nuts.
I'm use Net::SMTP, and have been for a few weeks now. It works fine from my machine, but I'm rebooting/rebuilding etc. pretty constantly, so I need to run it from a more stable machine.
I was never able to get it to run off of a server I've got, but goofed around enough last night to where it worked (I don't know how). Now, this morning it isn't working again. :(
After digging around, it seems that when I use a mail client, it caches my password, so i can send it out w/ authentication. (I just started a mail client on this server, sent a test mail, closed the client, tried my script again, and it worked.)
I remember looking around and finding the syntax for sending an authorized mail w/ Net::SMTP, but can't seem to find it. I guess in short, I'm asking for that syntax.
Something like
$smtp->authen('me@me.com' 'password')
if memory serves. I have installed Authen.pm as well.
Not that great of a solution though as I need to make an extra mail account who's password I don't mind being out in the open.
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.