Reputation: 91
Sometimes mail couldn't reach a recipient, but not every time. I suspect what sometimes server dont send an email, so i want check it manually from command prompt (ssh) and i need exactly command which used by php to send email. How can I get it? Any suggestions?
Im using Zend Framework 1.10.2
$mail = new Zend_Mail('UTF-8');
$mail->setSubject('subject');
$mail->setBodyHtml('message');
$mail->setFrom('[email protected]');
$mail->addTo('[email protected]');
$mail->send();
I checked code twice and dont found any limits on email count.
Upvotes: 1
Views: 200
Reputation: 719
php's mail function in linux uses sendmail binary, but frameworks usually have different transport options: native mail, SMTP, etc. First, find out what is your case. After you will find out what MTA your code is using, check the logs of it. E.g. in debian postfix logs are located here: /var/log/mail.log
Upvotes: 0