Foser Posted July 2, 2007 Share Posted July 2, 2007 mail($email, "*******: Project Planner", $mailmessage); alright this is my mail, im trying to do if this was sent echo "The information Was successfully Sent To The Clients Email."; could anyone put me in the right direction. thanks Link to comment https://forums.phpfreaks.com/topic/58076-solved-mail-if-sent-execute-this/ Share on other sites More sharing options...
Foser Posted July 2, 2007 Author Share Posted July 2, 2007 bump Link to comment https://forums.phpfreaks.com/topic/58076-solved-mail-if-sent-execute-this/#findComment-287973 Share on other sites More sharing options...
Yesideez Posted July 2, 2007 Share Posted July 2, 2007 <?php if (mail($toemail,$subject,$body,$header)) { //DO THIS IF MAIL SENDS } else { //DO THIS IF MESSAGE FAILS } ?> Note that this only works to check if the email was sent. Whether the email address you're sending to exists or not is not checked and cannot (easily) be checked. Link to comment https://forums.phpfreaks.com/topic/58076-solved-mail-if-sent-execute-this/#findComment-287978 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.