php - detect if email is sent

后端 未结 7 1559
面向向阳花
面向向阳花 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:19

    $send = mail($emailRecipient, $subject, $message, $headers);

    Check the returned value of $sent like If($send['error_code'] == 0) { echo "successful"; } Else { Echo "error"; }

    0 讨论(0)
提交回复
热议问题