why can't i send email using php? -


i have done setting in sendmail.ini , php.ini can send email using gmail. recipient hotmail. when open hotmail, nothing received gmail. can me that? below php code:

<?php     $to = 'kill_stealer90@hotmail.com';     $subject = 'hello';     $message = 'why pro';     $headers = 'from:jackychickenchan@gmail.com';     if (mail($to,$subject,$message,$headers)){         echo("<p>sent</p>");     }else{         echo("<p>failed</p>");     } ?> 

and here sendmail.ini setting

smtp_server=smtp.gmail.com  ; smtp port (normally 25)  smtp_port=465  smtp_ssl=auto  auth_username=jackylonelyboy+gmail.com auth_password=nemesis90 

and here php.ini setting

; xampp: comment out if want work smtp server mercury ; smtp = smtp.gmail.com ; smtp_port = 465 

you didn't uncomment smtp server. take semi-colons out of smtp , port lines in php.ini.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -