Jump to content

[SOLVED] mail() if sent execute this.


Foser

Recommended Posts

<?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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.