
Originally Posted by
strelitzia
I have a requirement to send out a custom email to customers, but it needs to be automated as it is going out to 15000 + clients.
I have written the sql query that collates all the customer details from the 400k rows of data we have for them, but i can't figure out how to hook it into the existing email system. I don't want to use the email page from admin, but create an entirely new option where admin can select number of days dormant to vary who this email is going to.
I know that email processing from orders etc is handled by includes/functions/functions_email.php and that the email template is selected based on $current_page_base but i'm unsure on how i get my admin file dormant_mail.php to connect to and trigger the email process.
Can anyone tell me the current process for handling a checkout confirmation email for instance as the email content is built in orders.php and then passed on, yet function_email knows current_page_base was checkout_confirmation.
So, if my "email variables" are collected in admin/dormant_mail.php, do they need to be passed elsewhere to build the content, and then passed onto includes/functions/functions_email.php??
Writing the required code isn't an issue as i'm proficient with php, java and mysql, but i just don't get the zc way of preparing and handling emails.
Any help at all greatly appreciated.