Testing php mail() in localhost problem
- by Samir Ghobril
Hey guys, recently I just installed msmtp in linux and I even send a mail from the terminal and it worked:
echo -e "Subject: Test Mail\r\n\r\nThis is a test mail" |msmtp --debug --from=default -t username@gmail.com
But in php, after editing the php.ini file to have this:
sendmail_path = '/usr/bin/msmtp -t'
and using this piece of code:
…