kenkomuri Posted October 24, 2013 Share Posted October 24, 2013 Hi, The last week my email on prestashop works fine. This week my customer can not receive any email, no matter placing an order, the status has been changed, etc. I have tried changing to SMTP (Gmail) instead of PHP and works fine. I would no like to use SMTP because when I sent a newsletter Gmail blocks me. Do you know why it is happens? I am using Ipage hosting and Prestashop 1.5.0.17. I was wondering if Ipage blocks me because of the newsletter I sent on the weekend. Fernando Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 maybe the same reasons for why google blocked you? maybe your email is listed as SPAM mail ? have you got an access to outgoing emails log? Link to comment Share on other sites More sharing options...
kenkomuri Posted October 24, 2013 Author Share Posted October 24, 2013 maybe the same reasons for why google blocked you? maybe your email is listed as SPAM mail ? have you got an access to outgoing emails log? I have checked with Ipage and I am not blocked. I have checked my emails and there are not in SPAM, they didnt reach the destination email. Where can I access my outgoing emails log of the php function? Thanks Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 if you're on shared host ask your hoster about this file, or try to find it in your hosting panel / ftp root directory (simple /mail/log.txt file) Link to comment Share on other sites More sharing options...
kenkomuri Posted October 28, 2013 Author Share Posted October 28, 2013 Thanks Vekia, Whats the exact path? I have look for /mail/log.txt but I could not find it. Link to comment Share on other sites More sharing options...
vekia Posted October 28, 2013 Share Posted October 28, 2013 i don't know, there is no "universal" path. everything depends on your hoster. Sometimes they don't create file like this - in this case you will not have access to this log file. Link to comment Share on other sites More sharing options...
kenkomuri Posted October 29, 2013 Author Share Posted October 29, 2013 i don't know, there is no "universal" path. everything depends on your hoster. Sometimes they don't create file like this - in this case you will not have access to this log file. I have contacted Ipage and they said there is no any log.txt :S Link to comment Share on other sites More sharing options...
vekia Posted October 29, 2013 Share Posted October 29, 2013 they must have this log (maybe not for your account but for whole service they provided), maybe they don't want to share it for you? Link to comment Share on other sites More sharing options...
kenkomuri Posted November 3, 2013 Author Share Posted November 3, 2013 I have done this changes and it is not working also: Once in the root folder, you will need to make three code changes in three files. The first is located in the /tools/swift/Swift/Plugin/MailSend.php at around line 158. Change $headers = $headers->build(); To $headers = $headers->build(); $params = ""; Next, navigate to the /tools/swift/Swift/Message.php file to around line 79. Change $this->setFrom(""); To $this->setFrom("[email protected]"); Finally, navigate and change the /tools/swift/Swift.php file at around line 370. Change if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from); To if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from); if (!$has_reply_to[0]) $message->setReplyTo($from->getAddress()); Link to comment Share on other sites More sharing options...
vekia Posted November 4, 2013 Share Posted November 4, 2013 in my opinion it's strictly related to host settings. try to create simple .php file with code <?PHP mail('[email protected]', 'Test', 'message content test'); ?> does it work? Link to comment Share on other sites More sharing options...
kenkomuri Posted November 11, 2013 Author Share Posted November 11, 2013 (edited) in my opinion it's strictly related to host settings. try to create simple .php file with code <?PHP mail('[email protected]', 'Test', 'message content test'); ?> does it work? I am newbie, how can I create it and check i? What I have note is that the test email in prestashop works but the email templates like confirmation, status changes, etc. and newsletter does not work on php. Edited November 11, 2013 by kenkomuri (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 11, 2013 Share Posted November 11, 2013 have you tried with SMTP method? Link to comment Share on other sites More sharing options...
kenkomuri Posted November 11, 2013 Author Share Posted November 11, 2013 have you tried with SMTP method? Yes, with SMTP is working but is Gmail and I can not send newsletter because is limited to 500 mails per day. Link to comment Share on other sites More sharing options...
vekia Posted November 12, 2013 Share Posted November 12, 2013 and if you use email account from your hosting? haven't you got any email box on your host? Link to comment Share on other sites More sharing options...
kenkomuri Posted November 12, 2013 Author Share Posted November 12, 2013 and if you use email account from your hosting? haven't you got any email box on your host? not yet, but it is limited also, thats the reason because I have not change it. PHP mail function was great but it doesnt work anymore. Link to comment Share on other sites More sharing options...
vekia Posted November 12, 2013 Share Posted November 12, 2013 php mail function isn't great. Most of the most important email providers (like hotmail, yahoo) block emails from simple mail() function, mainly because spammers usually uses it to send spam Link to comment Share on other sites More sharing options...
vjnunes Posted August 18, 2015 Share Posted August 18, 2015 Hello, I had some problem and the issue was that the server ip adress was blacklisted. You can check it here https://ers.trendmicro.com/reputations . If confirms that the ip blacklisted, contact your server administrator and give them that information. In 24 hours your problem is solved. Regards Link to comment Share on other sites More sharing options...
ashish.kpaul Posted April 7, 2016 Share Posted April 7, 2016 1st give the correct path of [sendmail_path] function in php.ini then simply disable [disable_functions] in php.ini. or just add disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,phpinfo,system,exec, ==================== in vps if u r using smtp clients as SSMTP then add in php.ini, sendmail_path = /usr/sbin/ssmtp -t and disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,phpinfo,system,exec, Link to comment Share on other sites More sharing options...
Recommended Posts