Answers.Body: <p>Let me know if anything in this help document needs clarifying: <a href="https://craftcommerce.com/support/sending-an-order-confirmation-email" rel="nofollow noreferrer">https://craftcommerce.com/support/sending-an-order-confirmation-email</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-09T20:22:36.307Z
Answers.Text: @MohitPrajapati, could you please accept Luke's answer if it solved your problem?
Answers.UserDisplayName: Matt Stein
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-13T14:53:40.610Z
Answers.Text: Just a heads up to anyone coming to this for Craft 3 (super annoying that ALL the docs point to v2 still), the above link no longer works, and Craft has dropped all forms of example email templates which is a bit disappointing.
Answers.UserDisplayName: Sk446
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-27T14:39:55.167Z
Answers.LastActivityDate: 2017-02-27T14:39:55.167Z
Answers.UserDisplayName: Luke Holder
Answers.Body: <p>It sounds to me like you need a plugin which listens for <code>commerce_orders.onOrderComplete</code>, fetches the restaurant in the order and sends the email to the restaurant owner. See <a href="https://craftcommerce.com/docs/events-reference#commerce_orders.onordercomplete" rel="nofollow noreferrer">https://craftcommerce.com/docs/events-reference#commerce_orders.onordercomplete</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-28T13:37:34.620Z
Answers.LastActivityDate: 2017-02-28T13:37:34.620Z
Answers.UserDisplayName: Clive Portman
Body: <p>I have created a site for searching nearby restaurants and order items.</p>
  
  <p>After ordering I wanna send a mail "Order received" with receipt attached in mail (if possible) to the customer + a mail to the respective restaurant which is in Craft->User "New Order" + a mail to site admin contains customer info and restaurants info + what I code in email template. </p>
  
  <p>All these function will be done in single click. I mean when customer click on Order Now. These all mail will sent.</p>
  
  <p>I am try to search email template and tutorial but I haven't found anything.</p>
  
Tags: <plugin-craftcommerce>
Title: Email Template in Craft Commerce
ThreadText: # Email Template in Craft Commerce
  
  (Asked by: username_0 on 2017-02-27)
  
  I have created a site for searching nearby restaurants and order items.
  
  After ordering I wanna send a mail "Order received" with receipt attached in mail (if possible) to the customer + a mail to the respective restaurant which is in Craft->User "New Order" + a mail to site admin contains customer info and restaurants info + what I code in email template.
  
  All these function will be done in single click. I mean when customer click on Order Now. These all mail will sent.
  
  I am try to search email template and tutorial but I haven't found anything.
  
  **Tags:** plugin-craftcommerce
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-02-27. Score: 2
  
  Let me know if anything in this help document needs clarifying: <https://craftcommerce.com/support/sending-an-order-confirmation-email>
  
  > **Comments:**
  > **username_2**: @username_0, could you please accept username_1's answer if it solved your problem?  
  > **username_3**: Just a heads up to anyone coming to this for Craft 3 (super annoying that ALL the docs point to v2 still), the above link no longer works, and Craft has dropped all forms of example email templates which is a bit disappointing.  
  
  ---
  
  ### Answer by username_4 on 2017-02-28. Score: 1
  
  It sounds to me like you need a plugin which listens for `commerce_orders.onOrderComplete`, fetches the restaurant in the order and sends the email to the restaurant owner. See <https://craftcommerce.com/docs/events-reference#commerce_orders.onordercomplete>
  
  
  ---
  
  