From: "Dennis G. Wicks" <dgwi...@gmail.com>
[Cleaned out previous stuff]
Greetings;
Well, I tried to attach the port to the server address,
Host => 'smtpout.secureserver.net:3535',
but that doesn't work either. Maybe there is something else setup wrong
that I'm not seeing.
I see the word "secure" in the host of the server. The server might be
secured and it could use SSL or TLS encryptions for communicating with it.
If it does this, you can try to use something like:
use strict;
use Mail::Builder::Simple;
use Net::SMTP::SSL; #or TLS
my $mail = Mail::Builder::Simple->new;
$mail->send(
mail_client => {
mailer => 'SMTP',
mailer_args => [
Host => 'smtpout.secureserver.net:3535',
ssl => 1,
username => 'the_username',
password => 'the_pass',
],
},
from => ['yourem...@host.com', 'Your Name'],
to => ['destinat...@anotherhost.com', 'Recipient Name'],
subject => 'The subject',
plaintext => "The text\n\n",
);
Octavian
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/