I am sending email using the following:
open (EMAIL, "| /usr/lib/sendmail -t -i"
or die ("Can't Open Email Pipe"
;
for ($i=0; $i<=$#ToAddresses; $i++){
print EMAIL "To: $ToAddresses[$i]\n";
}
print EMAIL "From: $FromAddress\n";
print EMAIL "Subject: $Subject\n\n";
print EMAIL "$Body";
close (EMAIL) or die ("Can't close email pipe"
;
I use my personal email address in the $FromAddress. This works fine when I send e-mail that can be delivered properly. It has my personal address in the from section. However, when I send an email to a bad email address I don't get a non delivery message returned. I need to know if some e-mail are not delivered. Any suggestions?
Thanks
Andy Cruce
open (EMAIL, "| /usr/lib/sendmail -t -i"
or die ("Can't Open Email Pipe"
for ($i=0; $i<=$#ToAddresses; $i++){
print EMAIL "To: $ToAddresses[$i]\n";
}
print EMAIL "From: $FromAddress\n";
print EMAIL "Subject: $Subject\n\n";
print EMAIL "$Body";
close (EMAIL) or die ("Can't close email pipe"
I use my personal email address in the $FromAddress. This works fine when I send e-mail that can be delivered properly. It has my personal address in the from section. However, when I send an email to a bad email address I don't get a non delivery message returned. I need to know if some e-mail are not delivered. Any suggestions?
Thanks
Andy Cruce