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
Post a Comment