Alan Sanders wrote:
Tom - Yes I use real values.
Dr. Ruud - You're right... the extra line is useless and I have cleaned it up
accordingly.
Anyways I figured the script out. Here's the final output cleaned up a little
bit.
Thanks for your help.
#!/usr/bin/perl -w
use strict;
use Net::SM
Tom - Yes I use real values.
Dr. Ruud - You're right... the extra line is useless and I have cleaned it up
accordingly.
Anyways I figured the script out. Here's the final output cleaned up a little
bit.
Thanks for your help.
#!/usr/bin/perl -w
use strict;
use Net::SMTP;
my $mail_server = "
Alan Sanders schreef:
> defined ($smtp->auth($username, $password))
> or die "Can't authenticate: $!\n";
>
> $smtp->auth($username, $password);
Why twice?
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
On 8/25/06, Alan Sanders <[EMAIL PROTECTED]> wrote:
my $mail_server = "mailhost";
my $username = "login";
my $password = "password";
I hope you're using the real values when you run your code for real.
my $smtp = Net::SMTP->new($mail_server, Hello => 'mailhost', Port => 587, Timeout
=> 60,
Hey,
I'm trying to send mail over my server (1and1.com). They require smtp
authentication in order to send. I'm using windows XP.
Here is my code:
#!/usr/bin/perl -w
use strict;
use Net::SMTP;
my $mail_server = "mailhost";
my $username = "login";
my $password =