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

Python __call__ special method practical example -

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -