Human friendly WordPress Automation
WunderAutomation has two built in actions that supports sending HTML emails, one standard and one that explicitly piggybacks on WooCommerce (if it’s installed). Just like the built in plain text email action, both HTML email actions sends the resulting HTML email using the wp_mail() function.
Using the wp_mail() function means that WunderAutomation will use any existing 3rd party functionality that might in place to send outbound emails.
The standard Send HTML email action relies on overridable templates for the basic design. The standard HTML email action also allows you to skip using templates if you prefer to compose your HTML email entirely in the editor.
The heading field is available for both the HTML email actions. Inspired by the WooCommerce standard HTML email template, WunderAutomation also uses a “heading” field:
Available only for the standard HTML email action. The style field allows you to add additional CSS rules that will be added to the style section of the rendered email. If you are using the email templates (default), any css rules in the style field are added AFTER the css rules in the template.
The following templates are used to control the look and field of emails created using the standard HTML email action:
The original templates are located in: wp-content/plugins/wunderautomation/templates
The above templates can be overridden by creating a subfolder named: wunderautomation in your active theme and place a copy of any (or all) of the template files there.
The resulting folder should be: wp-content/themes/yourtheme/wunderautomation/emails
When WunderAutomation needs to render a template, it will first look for the file in the wunderautomation subfolder of your theme and if it can’t be found there, it will fall back to using the template provided with WunderAutomation.
If you’re using the built in email templates, it’s also possible to modify the built in templates color scheme via WordPress filters. The following filters are used:
It’s possible to send HTML emails without using the built in templates. Check the “Skip templates” checkbox to make WunderAutomation render the emails without templates.
When sending emails without template, the action content field needs to contain all the needed HTML. In order for the emails to render properly in some email clients you might need to include a full <html><head/><body/></html> structure with the style tag inserted in the head tag. To make this easier, WunderAutomation offers a special placeholder [WASTYLE]:
The WooCommerce email action takes all styling configuration from WooCommerce. This includes template files, header image, color configuration etc. found in the WooCommerce email settings:
Read more about how to customize WooCommerce email settings here.
Powered by BetterDocs
Your email address will not be published. Required fields are marked *
Yes, sign me up for informational and marketing emails from wundermatics.com
Save my name, email, and website in this browser for the next time I comment.