You are not logged in.
I can send emails to (some) adresses with this command:
echo 'test' | msmtp xxxxx@gmail.com
it also works with some other addresses, but not with any of the temporary ones I tried out.
Anyway, here are the relevant conf files
account gmail
host smtp.gmail.com
port 587
protocol smtp
auth on
from xxx@infocalypse-net.info
user xxx@infocalypse-net.info
password xxxxxx
tls on
tls_starttls on
tls_trust_file /usr/share/ca-certificates/mozilla/Thawte_Premium_Server_CA.crt
account default : gmail
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "/usr/bin/msmtp -t"
I'm not able to send any mail with the php mail() function, despite the above configuration. I've restarted all of the necessary daemons.
Shouldn't wordpress now use that to send emails? I can send to some addresses with the manual command, so shouldn't it work? Well it doesn't. Wordpress doesn't do anything, and all of the various plugins I tried don't work either.
I tried changing the flags in my php.ini
"/usr/bin/msmtp -t -i" doesn't work either, nor do any of the other ones I've tried.
According to the msmtp docs, 'sendmail' mode is enabled by default, so it should be compatible. I'm just not sure if I need to do something special to make it work.
Last edited by Nisstyre56 (2010-04-07 02:22:30)
In Zen they say: If something is boring after two minutes, try it for four. If still boring, try it for eight, sixteen, thirty-two, and so on. Eventually one discovers that it's not boring at all but very interesting.
~ John Cage
Offline
Hello, I got the same problem.
Did you check your apache error log?
Because I just found the solution because of that.
"msmtp: /etc/msmtprc: must be owned by you"
which was correct actually, the file was not owned by http.
My msmtp conf file is like yours, and my php conf is this:
sendmail_path = "/usr/bin/msmtp -C /etc/msmtprc -t"
Last edited by CelticHarp (2012-05-27 21:42:18)
Offline