how admin will get an email when the Customer places an order?
-
how admin will get an email when the Customer places an order?
-
Hello sanjana,
To get mail for admin on order place, follow below steps :
-
You need to set 'ADMIN_MAIL_TO' and 'SHOP_MAIL_FROM' parameter in .env file
-
Go to admin package /src/Mail/NewAdminNotification.php file, replace build method with
public function build()
{
return $this->to(env('ADMIN_MAIL_TO'))
->from(env('SHOP_MAIL_FROM'))
->subject(trans('shop::app.mail.order.subject'))
->view('shop::emails.sales.new-admin-order');
}
-
-
Order is main functionality of eCommerce website, Why this was not integrated in earlier build? Or It will send default mail to admin email id?
-
Hello Sandeep,
It is already implemented in our application, when any one places any order then admin and customer will get mail for that order.
You need to set admin mail id in .env file.
Thanks
-
I am using gmail id as smtp.
-
@rahul I have already added
[email protected]
[email protected]but no mail received on admin or customer's email