Julian
Forum Replies Created
-
Forum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] Images always asking to downloadHello @nimster,
that’s the default behavior of some e-mail clients. There is nothing you can do about that.
However, you could maybe write your own filter, hook into the wp-mail function, search for all image tags, replace them with base64 encoding and embed them inline.
This is outside of the scope of our plugin however.
Best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] Mail Mint Compatibility or ExclusionAs you have not posted any further messages, I assume your problem was solved.
If not, feel free to let us know.Best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] Mail Mint Compatibility or ExclusionHello @txphi592,
you can also use
$mail['message']
to identify any element, that is included in every email, with the same filter.
Best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] 96 Displaying in the EmailI am happy it worked.
If you experience any further issues, let us know please.
Best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] 96 Displaying in the EmailHello Hanna,
do you still have troubles?
Best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] Mail Mint Compatibility or ExclusionHello @txphi592,
can you please try this snippet:
add_filter( 'haet_mail_use_template', function ( $use_template, $email ){ if( $email['subject'] == 'MY KEYWORD' ){ $use_template = false; } return $use_template; } , 10, 2 );
Let me know if that works for you.
Best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] 96 Displaying in the EmailHello Hanna,
“The email that triggers the problem is an email template created inside a custom plugin.”
What plugin are you using? If the plugin is not supported it will not work, but then you could use this filter, to deactivate our template for these specific emails.
You can fin the option for disabling header for support plugins under:
Settings -> Email template > Plugin emails (then click on plugin under Active plugins).Best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] 96 Displaying in the EmailHello Hannah,
does your issue still persist?
Best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] 96 Displaying in the EmailHello Hannah,
you can use the same options for any supported plugins.
Please describe in detail which e-mail triggers the problem when it is send, how it is triggered and which other plugins you use, that might interfere.Thank you and best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] 96 Displaying in the EmailHello @hnnhtabunan,
If you are using WPForms, please turn on the “Hide header “option. You can also deactivate “Use template”.
Best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] Disable for certain sender addressHello Sebastian,
I am pleased it worked out!
Please elt me know if there is anything else I can help with.Best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] Disable for certain sender addressHello Sebastian,
depending on which plugins you are using your parameters could look differently. I have done an
error_log
of$mail
on my test system using only WP HTML Mail and WP HTML Mail WooCommerce, this is what the array looks like:### - $mail - ### Array ( [to] => [email protected] [subject] => Deine Bestellung bei Dev 2 ist nun abgeschlossen [message] => <!DOCTYPE html>... [headers] => Content-Type: text/html Reply-to: Dev 2 <[email protected]> [attachments] => Array ( ) [sender_plugin] => woocommerce )
So here are the standard keys you can check and write a function for:
[to] [subject] [message] [headers] [attachments] [sender_plugin]
This is all the help I can give you for now. You will have to write the function yourself, for your specific use case.
Best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] Disable for certain sender addressHello Sebastian,
at quick glance I would write the code like this:
add_filter( 'haet_mail_use_template', 'customize_template_usage', 10, 2 ); function customize_template_usage( $use_template, $mail ){ if( $mail['from'] == '[email protected]' ){ return false; } return true; }
however, I have not checked my test-system to see if
$mail['from']
is a valid parameter. You could do avar_dump($mail)
orerror_log(print_r($mail, true));
within this function to view which keys are available for use in the filter.Please let me know if you require further assistance. I will check the paremeters on my test system if you need further help.
Best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] Disable for certain sender addressHello Sebastian,
can you please paste the code you have been trying to use? If not please give me an example of the parameter, by which you would like to exclude the templates. Then I can give you a code example.
Best regards
JulianForum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] haet_mail_preheaderHello @martenw,
our plugin has a preview function in the “E-Mail template” options, where you configure the layout.
Concerning your last question, the pre_header is not being displayed, it’s needed for our plugins preview functionality. So I suppose it wouldn’t break any outgoing emails, but you should test them all thoroughly if you make custom changes. If you still require assistance, please email us to support(at)codemiq.com.
Best regards
Julian