php - detect if email is sent

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

    You can also try this

    $send = mail($to,$subject,$msg);
    if($send)
    {
        echo "Your Account is Successfully Created. You must Activate your account.";
    }
    else
        echo "Failed to send";
    

提交回复
热议问题