Re: smtp authentication

2006-08-26 Thread JupiterHost.Net
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

smtp authentication

2006-08-26 Thread Alan Sanders
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 = "

Re: smtp authentication

2006-08-25 Thread Dr.Ruud
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

Re: smtp authentication

2006-08-25 Thread Tom Phoenix
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,

smtp authentication

2006-08-25 Thread Alan Sanders
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 =