Graeme McLaren
2005-05-19 09:55:34 UTC
Hi all, I'm wanting to use the Mail::Sender module. When sending emails
I'll need to use an SMTP server. On CPAN I found the following in the
documentation, is this all I would need to send email? What is the "auth"
key for? Surely all you need is a host, username and password?
if ($sender->MailMsg({
smtp => 'mail.yourISP.com',
from => '***@somewhere.com',
to =>'***@Krynicky.czX',
subject => 'this is a test',
msg => "Hi Johnie.\nHow are you?"
auth => 'NTLM',
authid => 'jenda',
authpwd => 'benda',
}) < 0) {
die "$Mail::Sender::Error\n";
}
print "Mail sent OK."
Cheers,
G :)
I'll need to use an SMTP server. On CPAN I found the following in the
documentation, is this all I would need to send email? What is the "auth"
key for? Surely all you need is a host, username and password?
if ($sender->MailMsg({
smtp => 'mail.yourISP.com',
from => '***@somewhere.com',
to =>'***@Krynicky.czX',
subject => 'this is a test',
msg => "Hi Johnie.\nHow are you?"
auth => 'NTLM',
authid => 'jenda',
authpwd => 'benda',
}) < 0) {
die "$Mail::Sender::Error\n";
}
print "Mail sent OK."
Cheers,
G :)
--
To unsubscribe, e-mail: beginners-***@perl.org
For additional commands, e-mail: beginners-***@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>
To unsubscribe, e-mail: beginners-***@perl.org
For additional commands, e-mail: beginners-***@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>