dlali
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Meanwhile as a workaround i use this filter, works nicely. (Tha password reset email filter may not be necessary, as in the woocommerce email settings it already supports html email for password reset.)
// adding support for html emails add_filter( 'wp_mail_content_type','mycustom_set_content_type' ); function mycustom_set_content_type() { return "text/html"; } // also filter the password reset email for compatibility with the HTML format add_filter( 'retrieve_password_message', 'mycustom_retrieve_password_message', 10, 1 ); function mycustom_retrieve_password_message( $message ) { $message = str_replace('<','',$message); $message = str_replace('>','',$message); $message = str_replace("\n",'<br>',$message); return $message; }Cheers
Hi,
There was no option in the other pugin, i also wrote a query to them, waiting for answer.Anyway, meanwhile i have solved this problem with a filter. If anyone interested (got it from Google search):
// adding support for html emails add_filter( 'wp_mail_content_type','mycustom_set_content_type' ); function mycustom_set_content_type() { return "text/html"; } // also filter the password reset email for compatibility with the HTML format add_filter( 'retrieve_password_message', 'mycustom_retrieve_password_message', 10, 1 ); function mycustom_retrieve_password_message( $message ) { $message = str_replace('<','',$message); $message = str_replace('>','',$message); $message = str_replace("\n",'<br>',$message); return $message; }Tha password reset email filter may not be necessary, as in the woocommerce email settings it already supports html email for password reset.
Ticket can be closed. Though it would be nice to have a solution without a manual filter.
Viewing 2 replies - 1 through 2 (of 2 total)