I want email will be sent only one time when payment will be successful, don't want to stop the sending process of order confirmation email
1 Answer
You can do it easily with disable
the order confirmation email from admin and enable
invoice email from admin.
So it will send email at the time on invoice (payment received) only and not sent the order confirmation email.
Order email setting, Set it to No :
Admin -> Stores -> Configuration -> Sales -> Sales Email -> Order -> Enabled
Invoice Email setting, Set it to Yes ::
Admin -> Stores -> Configuration -> Sales -> Sales Email -> Invoice -> Enabled
You can change the invoice email content as per your need.
-
Thank you so much..yes, it's working...I'm appreciating your answer and hope you will help me for such type of things in future– AdiCommented Nov 7, 2016 at 16:12
-
In case of Cash on delivery, I won't get any email about order success, right?– NausifCommented Apr 24, 2018 at 13:54
-
@Nausif nope, you are right, you won't get the email until after you invoice it lol. So this has to be improved. Better to have to set emails Yes/No based on initial order status. Because then online orders with Credit Cards won't get email until their order ships which can in a couple of days if they are using Capture on shipment not on order placement which is almost the business standard, authorize on order, capture on shipment. Commented Aug 21, 2022 at 7:34