Page 1 of 1

customized email

Posted: Mon Jul 13, 2009 9:59 pm
by barells
When someone checks out, if the product string matches a certain criteria I would like to send an email confirmation to an an additional email address showing the order.

Can someone tell me where I can insert this code in the files?

This is being used for my drop ship clients. I need to have the order emailed to the manufacturer, so they can ship everything out.

Thanks for the help.

Re: customized email

Posted: Wed Jul 15, 2009 1:05 am
by readyman
Look in system/library/mail.php - just go right to the end of the file where the mail() function is called.
You can then check the $message for your 'pattern'

Re: customized email

Posted: Wed Jul 15, 2009 3:38 am
by barells
that makes sense. thank you.

Re: customized email

Posted: Thu Jul 16, 2009 11:10 pm
by barells
Where can I change the content of an email?

Is this in a template file?

I would like to send 2 different formatted emails. One to the customer and store owner, and one to our drop ship client.

Re: customized email

Posted: Fri Jul 17, 2009 3:16 pm
by readyman
I believe the email sent when ordering is in the catalog/model/checkout/order.php file... (off the top of my head)... you should be able to add your extra mail requirements there.