php - How do i make sure that my mail($to,$subject,$msg); delivers the mail -
my computer has got apache installed(localhost), made signup option, , there email option send mail activation of account. have internet connection, if in php script, write mail($to,$subject,$msg); code deliver mail desired recepient because not sending it.
there no way 100% sure email received recipient.
the mail()
function returns value depending on whether there problem sending email or not. this:
$successful = mail($to,$subject,$msg); if (!$successful) { // email not sent }
if value of $successful
false
server had issue sending email. add code , see happens. if $successful
true
server sending email ok , problem may lie spam filters receiving email , deleting it. can learn more how prevent in this question.
Comments
Post a Comment