JasonWang Posted December 17, 2013 Share Posted December 17, 2013 (edited) Prestashop version: 1.5.6 Env: Godaddy, VPS, LAMP I am using the PHP mail() function to send mails. It works fine to send to any domains' email address, EXCEPT my own domain's. And the most suprising thing is that the method Mail:send() returns true... When It's Mail::Send($this->context->language->id, 'inquiry-to-customer', 'We have recieved your inquiry.', $emailData, $customerEmail(reciever, not my domain), $firstName.' '.$lastName, $saleEmail(sender, my domain), $saleName) It returns true, and I can recieve the email. the red ( ..... ) is annotation, not code. But when it's Mail::Send($this->context->language->id, 'inquiry-to-salesman', 'Inquiry for '.$productName." ".$inquiryNum, $emailData, $saleEmail(reciever, my web domain), $saleName, $customerEmail(not my domain), $firstName.' '.$lastName) It also returns true, but I cannot recieve any email. Does anybody know how to solve this problem? p.s. If I use SMTP option, I can recieve both emails. Edited December 17, 2013 by JasonWang (see edit history) Link to comment Share on other sites More sharing options...
JasonWang Posted December 18, 2013 Author Share Posted December 18, 2013 anyone can teach me how? Link to comment Share on other sites More sharing options...
ExpressTech Posted December 18, 2013 Share Posted December 18, 2013 As you have a VPS account, why don't you see in the mail log (for postfix /var/log/maillog or /var/log/mail) Link to comment Share on other sites More sharing options...
JasonWang Posted December 19, 2013 Author Share Posted December 19, 2013 (edited) As you have a VPS account, why don't you see in the mail log (for postfix /var/log/maillog or /var/log/mail) I kind of know what's happening. I'am using gmail server. I looked up the mail record in cPanel. I found this. one is success. the deliver user is "remote", means gmail server was handling this. the other one is failure. I think its because the reciever is my own doaim, the deliver user is "sanford", means local host was handling it. so the report shows "no such user". How can I make the gmail server to handle the delivery when the reciever is of my own domain? Already solved. Go to cPanel, change MX entry Edited December 19, 2013 by JasonWang (see edit history) Link to comment Share on other sites More sharing options...
Vitazzz Posted April 27, 2015 Share Posted April 27, 2015 Hey, I got exactly same problem, but my account is shared, not VPS, I don't have any advanced options available in cPanel. What to do? Link to comment Share on other sites More sharing options...
ankurawasthi82 Posted December 19, 2016 Share Posted December 19, 2016 I kind of know what's happening. I'am using gmail server. I looked up the mail record in cPanel. I found this. one is success. the deliver user is "remote", means gmail server was handling this. the other one is failure. I think its because the reciever is my own doaim, the deliver user is "sanford", means local host was handling it. so the report shows "no such user". How can I make the gmail server to handle the delivery when the reciever is of my own domain? Already solved. Go to cPanel, change MX entry Hi, I am facing the same problem..can you tell what changes you made to the MX Entry? Thanks in advance.. Link to comment Share on other sites More sharing options...
Recommended Posts