cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3 not sending order confirmation Email

Magento 2.3 not sending order confirmation Email

Hi

i've recently moved my Magento 2.3.5 website to a new provider and since then i have some issues. The most annoying one is that order confirmation Emails are not sent out.

SMTP configuration is ok, test email works fine. Mageplaza SMTP is installed and shows many entries (contact form, shipment confirmation) but no order confirmation emails.

I think it's a cron issue but don't know where to look sincerely..

5 REPLIES 5

Re: Magento 2.3 not sending order confirmation Email

Hello @aezakmi 

 

Kindly check your Var/log to see any warning or error related to mail. And you also check following configuration

 

Got to Stores -> Configuration -> Advanced -> System

 

Under Mail Sending Settings make sure -  Disable Email Communications is set to No.

 

Also verify your Host and Port fields if you are using any external mailing server.

 

Go to Stores -> Configuration -> Sales -> Sales Emails

 

Under General Settings tab, choose Asynchronous sending to Disable

 

Under Order tab Enabled to Yes

 

Now clear/refresh your cache.

 

Hope this helps you.

Got to Stores -> Configuration -> Advanced -> System

 

Under Mail Sending Settings make sure -  Disable Email Communications is set to No.

 

Also verify your Host and Port fields if you are using any external mailing server.

 

Go to Stores -> Configuration -> Sales -> Sales Emails

 

Under General Settings tab, choose Asynchronous sending to Disable

 

Under Order tab Enabled to Yes

 

Now clear/refresh your cache.

 

Hope this helps you.

 

------------------------------------------------
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: Magento 2.3 not sending order confirmation Email

Hi @syedhasan 

 

thanks for the kind reply.

 

Unfortunately all steps you suggest are already correct..

 

In var/log i found something but doesn't seem to be correlated to that issue:

main.CRITICAL: DOMDocument::loadHTML(): Tag date invalid in Entity, line: 1 {"exception":"[object] (InvalidArgumentException(code: 2): DOMDocument::loadHTML(): Tag date invalid in Entity, line: 1 at /home/u314884553/domains/golfballs24.com/public_html/vendor/magento/framework/Escaper.php:94)"} []

what else can i do? 

Thanks!

Re: Magento 2.3 not sending order confirmation Email

Hi @aezakmi 

 

Possible fix

 

/module-sales/view/frontend/templates/order/order_date.phtml change "date" tag with "span"

 

 

------------------------------------------------
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: Magento 2.3 not sending order confirmation Email

Hi @syedhasan,

 

this is what is inside that file, what should i change?

<div class="order-date">
    <?= $block->escapeHtml(__('<span class="label">Order Date:</span> %1', '<date>' . $block->formatDate($block->getOrder()->getCreatedAt(), \IntlDateFormatter::LONG) . '</date>'), ['span', 'date']) ?>
</div>

Thanks

Re: Magento 2.3 not sending order confirmation Email

Hi @ngohang4891039 

thank you for your reply.

This is already something too much technical for me, i'm a newbie to Magento.

What i don't understand is why the email were working perfectly before the migration and now they don't? Nothing was changed in settings.. 
Can it be something cron related?