L
lyx
Hi
I need some help
i'm scripting in PERL on WinXP ( activeperl)
I try to do à little mailing script that takes email addresses in a txt file
and then send the same mail one per one to each recipients
all is ok but if in the txt file one email is wrong (syntaxe ok but not
existing)
the script dies
error output : "SMTP RCPT command failed: <[email protected]>: Recipient
address rejected: Domain not found"
and the next reciptients won't be emailed.
how could I test an email ( syntaxe test has been done) ?
here is an extract from the script
use MIME::Lite;
use Net::SMTP;
my $msg = MIME::Lite-> new (
From =>$exp,
To =>$dest,
Subject =>$subj,
Type =>'multipart/mixed') ;
$msg -> attach (
Type =>'text/HTML',
Data =>$message_html) ;
MIME::Lite->send('smtp',$my_smtp,Timeout=>60);
$msg->send;
thanks a lot for the futur help
Lyx
I need some help
i'm scripting in PERL on WinXP ( activeperl)
I try to do à little mailing script that takes email addresses in a txt file
and then send the same mail one per one to each recipients
all is ok but if in the txt file one email is wrong (syntaxe ok but not
existing)
the script dies
error output : "SMTP RCPT command failed: <[email protected]>: Recipient
address rejected: Domain not found"
and the next reciptients won't be emailed.
how could I test an email ( syntaxe test has been done) ?
here is an extract from the script
use MIME::Lite;
use Net::SMTP;
my $msg = MIME::Lite-> new (
From =>$exp,
To =>$dest,
Subject =>$subj,
Type =>'multipart/mixed') ;
$msg -> attach (
Type =>'text/HTML',
Data =>$message_html) ;
MIME::Lite->send('smtp',$my_smtp,Timeout=>60);
$msg->send;
thanks a lot for the futur help
Lyx