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.

1 Answers1

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 = "receivemail@gmail.com";
    $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

Magento 2
  • 3,834
  • 7
  • 52
  • 107