Hi ,
Thanks a lot for your answer...
Well, i've tried the first option you mention with the test from sendGrid Test mail page, it seems to work..
But what about the second one, the one i'm only interested in ...
I've found two wp_email() call in my theme ... just have add :
add_filter('wp_mail_content_type', 'set_html_content_type');
and
remove_filter('wp_mail_content_type', 'set_html_content_type');
before and after wp_mail() call , and it doesn't work... i always get my emails in text-plain format ...
Also, does i have to add these to all my WP site folder ? there a lot of call to wp_mail , from woocommerce to different other plugins and core ... doesn't seem to be very stable solution, as everything should stay updatable ...
But before this... as i said you, this doesn't work for my first test with these code :
add_filter('wp_mail_content_type', 'set_html_content_type');
if(wp_mail($emailTo, $subject, $body, $headers))
{
echo '<span class="mail-success">' . __("Thank you. Your message has been sent.", 'kleo_framework').' <i class="icon-ok icon-large"></i></span>';
do_action('kleo_after_contact_form_mail_send', $name, $email, $comment);
}
else
{
printf($error_tpl, __("Mail couldn't be sent. Please try again!",'kleo_framework') );
}
remove_filter('wp_mail_content_type', 'set_html_content_type');
So ?
Thanks a lot for your help !