• Resolved cbcjock

    (@cbcjock)


    Hey!

    I had a look over the plugin and I have a question. I’d like to use the plugin to create an email template, unrelated to any plugin on my site and not using any plugin.

    For example, I want to send a note to a customer every week to remind them of something. I can write the logic to trigger this job, get the customer info etc, but I’d like to create the email template with this plugin.

    Can I do this with the plugin?

    I note that the plugin appears to do a preg_match to fill in placeholders, hence are their filters or a good way to hook in my own calls to fill in my own template?

    In short, I want to do the following:

    – Create a custom email template with some associated placeholders e.g. name, age.

    – Fire a call that will send that email template by sending the data to the template e.g. An array containing the customer name and age.

    Thanks!

Viewing 1 replies (of 1 total)
  • Sorry this is not the scope of this plugin. But you can trigger your email from anywhere using wp_mail() function and passing the email content to this function. My plugin hooks into this function and applies the template (just the styling) so if you can create your full email content in your PHP code this should work.

Viewing 1 replies (of 1 total)

The topic ‘Custom Templates (Non-plugin dependant)’ is closed to new replies.