how to debug php mail? -


a simple script simple mail function called in localhost , live server.

$message = "line 1\nline 2\nline 3";  $message = wordwrap($message, 70);  $rs = mail('myemail@gmail.com', 'my subject', $message); 

both of them return bool true. localhost can receive email in live server cannot receive mail.

then check /var/mail/www-data there message

mailing remote domains not supported 

linux, apache or php problem?

it seems smtp server configuration issue, since asking how debug php mail, best approach sniffing tcp conversation. can capture conversation using wireshark (or tcpdump if on console) , inspect actual commands sent , server.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -