email in php

Reply

Join Date: Nov 2007
Posts: 107
Reputation: kings has a little shameless behaviour in the past 
Solved Threads: 2
kings's Avatar
kings kings is offline Offline
Junior Poster

email in php

 
0
  #1
Mar 7th, 2008
hi

i have two mail function in my page.when a aggrement is signed ,mail will be sent to both the clients.
Error: when there is some problem in sending mail to one client the mail is getting delievered another client.if there is a problem i want to stop sending to both.please tell me how to do tat........

$sent = mail($to, $subject1, $body1, $headers);
$sent1 = mail_attachment("cgbasket@careerglitters.com",$too, $subject1, $body1, $attachment);
print "<table align='center' width='60%'>";
if($sent && $sent1)
{
print "<tr><td align='center'><B>Agreement has been Signed by $signby  with  $user </B></td></tr>";
}
else
{
print "<tr><td align='center'><b>Sorry,We encountered an error while sending your agreement</b></td></tr>";
}
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 570
Reputation: ryan_vietnow is an unknown quantity at this point 
Solved Threads: 71
ryan_vietnow's Avatar
ryan_vietnow ryan_vietnow is offline Offline
Posting Pro

Re: email in php

 
0
  #2
Mar 7th, 2008
What do you mean?like to delete the message you sent before on the clients when one encountered an error?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC