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.

13
  • Did you use sendmail function or SMTP to send email?
    – PY Yick
    Commented Jan 11, 2017 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 Commented Jan 11, 2017 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
    Commented Jan 11, 2017 at 6:50
  • @PY Yick Its's working properly... Commented Jan 11, 2017 at 9:30
  • Does var/log/exception.log add any new exceptions when "Unable to send mail" show up?
    – PY Yick
    Commented Jan 11, 2017 at 10:01

1 Answer 1

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 and acknowledge you have read our privacy policy.

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