This extension uses the cartthrob_on_authorize hook from the ExpressionEngine ecommerce software, Cartthrob, to send an email. The 'to' field is pulled from a field in the order.
- Download and put the email_extension folder in your addons folder.
- Create a text field in the "Orders" Channel. Can be called whateever you want.
- In the ext.email_extension.php file, replace CUSTOM_FIELD_HERE with the field name.
- Also in the ext.email_extension.php file, fill in all the placeholder text with your actual information (FROM_EMAIL_HERE, FROM_NAME_HERE, EMAIL_SUBJECT_HERE, EMAIL_TEMPLATE_HERE)
- EMAIL_TEMPLATE_HERE will need to be the path to your email template (i.e. emails/confirmation_email)