We would like to save all emails from an AbleCommerce to a database for a Customer Service reference.
How can I subsicribe to an event before or after email is sent? Or do we have an access to code for email sending logic?
Thank you
Save all emails from AbleCommerce
Re: Save all emails from AbleCommerce
Right now how application architecture is defined you can not register the Email events. There could be three possible solutions without back end source code.
1)- Trigger Emails Manually (Hard Way)
Instead of using built in triggers send Email manually via code by loading and sending appropriate Email templates. For this you would need to update all possible locations from where an Email can be triggered. For example for Order Confirmation you may need to put manual Email triggering code in OnePageCheckout controls ChecedOut method etc.
2)- CC Address approach (Proffered)
For this all you need is to put some dedicated Email address in CC list of all Email templates. Application will send a copy of every alert to this secondary Email address. You can configure some Email Client like Thunderbird or Outlook to download these Emails. In this case your Emails will be always avilable to you locally. Alternativly you may try some thing to import those downlaoded mails to some db structure.
This is the most preferable solution because you will not have to do extra work and future upgrades will be easy as well.
3)- You will need the backend code
The third option is the back end source code purchase and then updating Email code to save a copy in your db structure.
1)- Trigger Emails Manually (Hard Way)
Instead of using built in triggers send Email manually via code by loading and sending appropriate Email templates. For this you would need to update all possible locations from where an Email can be triggered. For example for Order Confirmation you may need to put manual Email triggering code in OnePageCheckout controls ChecedOut method etc.
2)- CC Address approach (Proffered)
For this all you need is to put some dedicated Email address in CC list of all Email templates. Application will send a copy of every alert to this secondary Email address. You can configure some Email Client like Thunderbird or Outlook to download these Emails. In this case your Emails will be always avilable to you locally. Alternativly you may try some thing to import those downlaoded mails to some db structure.
This is the most preferable solution because you will not have to do extra work and future upgrades will be easy as well.
3)- You will need the backend code
The third option is the back end source code purchase and then updating Email code to save a copy in your db structure.