I need to test some script using PHP\'s mail. I\'d like to be able to finally get this working locally. I am using MAMP. Is there a way to do this without installing any thi
I think the best solution is write all messages to file. So you just need to make own sendmail.
add to httpd.conf file this strings:
php_admin_value sendmail_path
"/Applications/MAMP/somefolder/mysendmail.sh"
In the file mysendmail.sh add following:
while read line do echo "$line" >> ../mail_log.txt done
echo "------------- next mail ----------------" >> ../mail_log.txt
exit 0
Do not forget to set privilegies: chmod 755 mysendmail.sh