On Nov 9, 2005, at 11:30 PM, Mark Wheeler wrote:
Just a quick question. I've been using MIME::Lite to send emails
from my home computer as I am running a server there. But I
recently switched to DSL with SBC/Yahoo and they are blocking port
25. My mail suddenly stopped going through. I've opted out of that,
thinking that was the problem, as they give you the option, but
that didn't seem to help. No mail is being sent from my cgi script.
So I am wondering if there is a way to send authenticated mail with
MIME::Lite. I've read the examples and docs regarding MIME::Lite
and sending authenticated mail, but can't seem to make heads or
tails about it. Does any one have an idea of how to do that? Any
help would be appreciated.
Here's an example, taken from the MIME::Lite docs:
### Do something like this in your 'main':
if ($I_DONT_HAVE_SENDMAIL) {
MIME::Lite->send('smtp', "smtp.myisp.net", Timeout=>60);
}
### Now this will do the right thing:
$msg->send; ### will now use Net::SMTP as shown above
If that doesn't work for you, one possible cause is that your ISP may
be restricting outgoing email based on the "From:" header, to help
cut down on spoofing. The ISPs that do this tend to allow you to opt
out, because there are lots of valid reasons why you might want to
use a different return address.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org