Octavian Râsnita wrote:
From: "Gunnar Hjalmarsson" <nore...@gunnar.cc>
Octavian Râsnita wrote:
There could be the following problems:
- If you have the SMTP server locally, it doesn't require
authentication, or
- The username should not be t...@mgssub.com but only tfrg, or
- The server requires SSL encryption (like Gmail's SMTP server), or
- the message is sent by it reaches in the SPAM folder.
Is there no way to have the module report the nature of the problem?
I've tried to see if I can make it report the problems, but I couldn't
do it.
Hmm.. Not good.
The module uses Mail::Builder which uses Email::Send, and Email::Send
doesn't report too many things.
I've seen that the maintainer of Email::Send is developing a new module
named Email::Sender, because he considers that Email::Send has some
bugs, however until that new module will be ready... I need to use
Email::Send, because it allows sending in many ways, using SMTP,
Sendmail, Qmail, Google and a few others.
Why is it important to have a mail sending module hunt for various
mailer programs?
My personal favorite is Jenda's Mail::Sender. This is an example of how
that module might be used to send the OP's message:
#!/usr/bin/perl
use strict;
use warnings;
use Mail::Sender;
ref (new Mail::Sender -> MailMsg( {
smtp => 'smtpout.secureserver.net',
port => '24', # or whatever
auth => 'LOGIN',
authid => 't...@mgssub.com',
authpwd => 'mypasswd',
from => 't...@mgssub.com',
to => 'dgwi...@gmail.com',
subject => 'The subject with chars corresp. to the charset',
msg => "Hello,\n\nHow are you?\n",
} )) or die "Cannot send mail: $Mail::Sender::Error\n";
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/