0

I try to place order in magento but customer can't get mail and also admin copy also not getting how i fix this.

5
  • In admin mail you configure or not
    – Magento 2
    Nov 13, 2016 at 14:56
  • Yes i set in backend Nov 13, 2016 at 14:56
  • cron is working for you store?
    – Kul
    Nov 13, 2016 at 14:56
  • Only this mail not working rest mail working Nov 13, 2016 at 15:00
  • In Magento 1.9 order email email use queue. so you need to run cron. see here magento.stackexchange.com/questions/45571/…
    – Kul
    Nov 13, 2016 at 15:02

1 Answer 1

0

Try this,

add your root folder and then run if you get mail

<?php 
    ini_set( 'display_errors', 1 );
    error_reporting( E_ALL );
    $from = "sendmailid&gmail.com";
    $to = "[email protected]";
    $subject = "PHP Mail Test script";
    $message = "This is a test to check the PHP Mail functionality";
    $headers = "From:" . $from;
    mail($to,$subject,$message, $headers);
    echo "Test email sent";
?>

app/code/core/Mage/Sales/Model/Order.php

find this $mailer->setQueue($emailQueue)->send(); and change into $mailer->send();

Note: Dont edit core file for testing only you try

2
  • How to check this Nov 13, 2016 at 15:00
  • in your root folder add this as mail.php then your browser www.domain.com/mail.php then check your mail you get mail or not
    – Magento 2
    Nov 13, 2016 at 15:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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