Forums / Developer / Several recipients of confirmation email

Several recipients of confirmation email

Author Message

Eirik Alfstad Johansen

Tuesday 19 April 2005 3:50:50 am

Hi,

I want several recipients (in addition to the shopper and admin) to receive a copy of the order confirmation email.

What's the easiest way to implement this?

I've looked into eZShopOperationCollection::sendOrderEmails, but it doesn't seem very flexible. Can I accomplish it without hacking this file?

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Xavier Dutoit

Tuesday 19 April 2005 4:21:56 am

1) create a sendemail event and put it in the workflow.

2) if the list is a fixed one, use a mailing list (neworders@yourcompany.com) and put all the people inside it

X+

http://www.sydesy.com

Eirik Alfstad Johansen

Tuesday 19 April 2005 4:41:00 am

Hi Xavier,

Thanks for the tip. Creating a custom event is of course one way to go, but being the lazy programmer that I am, I don't want to spend my time writing such an event simply to append an email recipient.

For now, I've simply hacked the eZShopOperationCollection::sendOrderEmails and appended a recipient.

It seems to me that it should be possible to define recipients of the order confirmation email, or admin recipients in general for that matter, as an array.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Xavier Dutoit

Tuesday 19 April 2005 5:47:08 am

Hi Eirik,

We have a general purpose event to send emails. However, I gave it to do to an inexperienced developer, and the code is not good enough to dare offer it as a contribution.

Basicaly, the idea is that the event as a template parameter. You set it to "confirmorder" and on this template, you set-blocks the recipients and the subject and write the body of mail.

X+

http://www.sydesy.com

Eirik Alfstad Johansen

Tuesday 19 April 2005 6:39:32 am

Sounds nice (and useful). Let me know if you ever get it cleaned up. I guess I'll stay with my hack for now.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/