PayboxByVerifone / Magento-2.0.x-2.2.x

Paybox by Verifone integration for Magento 2.0.x to 2.2.x
Apache License 2.0
7 stars 8 forks source link

The order confirmation email is not sent #21

Open ShapesGraphicStudio opened 5 years ago

ShapesGraphicStudio commented 5 years ago

Hello,

I had an issue with 1.0.6 (https://github.com/PayboxByVerifone/Magento2/issues/6), fixed in 1.0.7, but it seems to be back since 1.0.8 (with Magento 2.2.6).

My confirmation mails are not sent after payment.

After payment, status is OK at Processing. In the orders notes I can see: "You notified customer about invoice #XXXXXXX"

But Order & Account Information says "The order confirmation email is not sent".

We have customers feedback telling they did not get the messages.

Any idea on what could be wrong please ?

ShapesGraphicStudio commented 5 years ago

Well, looking a little further, "You notified customer about invoice #%1." seems to happen when email is sent:

if ($invoice && !$invoice->getEmailSent()) {
    ...
    $order->addStatusHistoryComment(__('You notified customer about invoice #%1.', $invoice->getIncrementId()))
                ->setIsCustomerNotified(true)
                ->save();
    ...
}

So the payment gateway seems to do the job..?

Why do I have "The order confirmation email is not sent" on the top of the order page in admin?

Configuration is OK, and server OK too. As admin I receive the confirmation mails as my address is in "Send Invoice Email Copy To" field in the configuration.

Maybe I should just look at an SMTP service to upper my sending/receiving rates..?

Could you please confirm everything works OK in the gateway? Can you confirm checkAndSend($order) returns true in file 'Magento\Sales\Model\Order\Email\Sender\OrderSender.php' using your gateway?

ShapesGraphicStudio commented 5 years ago

Hello @jcpaybox et @bm-services, Could you please give me some information about the questions above ?