Jump to content

Mail to admin without using Mail alert plugin


Recommended Posts

I want to use mail::send() for sending the notification to admin when order is placed in prestashop.My mail are working for customers but i want to send a mail to shop admin too regarding order placement.And one more thing i dont want to use any seperate plugin for this,I have my payment module in which at the end order status is changed after placing a order.So, I just need to use Mail::send() in that file in order to send notification.

Mail::Send(
(int)$order->id_lang,
'order_conf',
Mail::l('Order confirmation', (int)$order->id_lang),
$data,
$this->context->customer->email,
$this->context->customer->firstname.' '.$this->context->customer->lastname,
null,
null,
$file_attachement,
null, _PS_MAIL_DIR_, false, (int)$order->id_shop

);

something like this need to implement but this is not working directly. All suggestions are welcome. Thanks in advance.

Link to comment
Share on other sites

  • 10 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...