1

I am using Magento 1.9. I had configure the mail setting and my newsletter mail also working properly.

But when I tried "About Us" it show me the below error message

Unable to submit your request. Please, try again later

i had also go through the code. The $mail->send(); function generate an exception

Unable to send mail.

i am not getting the issue. Please help me to solve same.

  • Did you use sendmail function or SMTP to send email? – PY Yick Jan 11 '17 at 6:33
  • I haven't made any changes in core code.I just fount that under app\code\core\Mage\Core\Model\Email\Template.php in that send($email, $name = null, array $variables = array()) function – Paritosh Mahale Jan 11 '17 at 6:37
  • Try to run these send email commands on remote server first, probably you can find some errors: tecadmin.net/ways-to-send-email-from-linux-command-line/# – PY Yick Jan 11 '17 at 6:50
  • @PY Yick Its's working properly... – Paritosh Mahale Jan 11 '17 at 9:30
  • Does var/log/exception.log add any new exceptions when "Unable to send mail" show up? – PY Yick Jan 11 '17 at 10:01
0

After searching lot's of thing i found solution for this problem. This issue can solve by disabling mailQueue.

/app/code/core/Mage/Core/Model/Email/Template.php

Change Line

if ($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue) {

To

if (!($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue)) {

for more details visit here

But there may be case that it can affect other mail module

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.