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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -