php - detect if email is sent

后端 未结 7 1560
面向向阳花
面向向阳花 2020-12-09 18:49

Im building an automated newsletter, im kinda stuck with this problem. I need to know if the email was sent or not. Here is my code

 @$send = mail($emailReci         


        
7条回答
  •  自闭症患者
    2020-12-09 19:13

    if(@mail($emailRecipient, $subject, $message, $headers))
    {
      echo "Mail Sent Successfully";
    }else{
      echo "Mail Not Sent";
    }
    

提交回复
热议问题