Magento is not sending any emails, no confirmation mails, no invoice mails, no shipment mails or anything. I have configured all the settings in admin also. I am working on linux based shared hosting.


3 Answers 3


Is there a mail server configured an running on the server? You can try and check that by making a small PHP script. Here you can see how you can do that: https://stackoverflow.com/questions/7667208/how-to-check-if-a-mail-server-exists-or-not

$errno = 0;$errstr = '';
$fp = fsockopen("localhost", 25, $errno, $errstr, 5);
if (!$fp) {
    echo "No mail server responded on this server on port 25, validate your configuration";
  • yah mail server is configured. But its not sending any mails from magento admin Commented Sep 20, 2014 at 18:27
  • Ok, did you try to actually send a mail by a PHP script yet? Best way to debug these kinds of problems is step by step. Begin as close to the core as possible and verify everything is working ok. Then climb the ladder a step en recheck. So first thing to do now is to send an email with PHP. See the example on this page how to do that: php.net/manual/en/function.mail.php
    – Akif
    Commented Sep 22, 2014 at 13:56

Check if you ve set cronjob in cpanel , if so pl check it exists , Also check if the mail address you entered is valid.

  • this question is a year old, I am pretty sure that the email problem was resolved...
    – paj
    Commented Aug 19, 2015 at 8:16

if you have cron issue.I solve Email Problem by disable Queue of cron . Now Sent email directly instant avoid queue. I think it is better for only low transactional magento store


CopyTo /app/code/local/Mage/Core/Model/Email/Template.php Line:407(approximate)

/*if (!($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue)) {
    ## @var $emailQueue Mage_Core_Model_Email_Queue 
    $emailQueue = $this->getQueue();
    'subject'           => $subject,
    'return_path_email' => $returnPathEmail,
    'is_plain'          => $this->isPlain(),
    'from_email'        => $this->getSenderEmail(),
    'from_name'         => $this->getSenderName(),
    'reply_to'          => $this->getMail()->getReplyTo(),
    'return_to'         => $this->getMail()->getReturnPath(),
    ->addRecipients($emails, $names, Mage_Core_Model_Email_Queue::EMAIL_TYPE_TO)
    ->addRecipients($this->_bccEmails, array(), Mage_Core_Model_Email_Queue::EMAIL_TYPE_BCC);

    return true;

You may flow this link if you have cron issue. Customer Order mail not sending

  • Overriding Core files is bad manner. You should extend the class in app/code/local rather.
    – Max
    Commented Sep 28, 2017 at 11:09

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.