T
Terry
Hi,
I am new to Perl. I ran into this problem while trying to send out 2
messages from a script. Nearly half the time, the second message didn't
get sent, while the first message always get sent. Here is what I did:
# send the 1st message
open (M, "| /usr/sbin/sendmail -t");
print M "To: $address_01\n";
print M "From: $address_from\n";
...
# content of 1st message
close (M);
# send the 2nd message
open (M, "| /usr/sbin/sendmail -t");
print M "To: $address_02\n";
print M "From: $address_from\n";
...
# content of 2nd message
close (M);
I wonder if this is the right way to implement this. Is there a way to
check to see if the messages have been sent successfully?
Thanks in advance for your help!
Terry
I am new to Perl. I ran into this problem while trying to send out 2
messages from a script. Nearly half the time, the second message didn't
get sent, while the first message always get sent. Here is what I did:
# send the 1st message
open (M, "| /usr/sbin/sendmail -t");
print M "To: $address_01\n";
print M "From: $address_from\n";
...
# content of 1st message
close (M);
# send the 2nd message
open (M, "| /usr/sbin/sendmail -t");
print M "To: $address_02\n";
print M "From: $address_from\n";
...
# content of 2nd message
close (M);
I wonder if this is the right way to implement this. Is there a way to
check to see if the messages have been sent successfully?
Thanks in advance for your help!
Terry