WPBE / WP Events
-
Hie,
I use WPBE to send HTML Email with templating in my WordPress and Contact form 7 plugin.
I manage event with WP Events with send HTML Parameters / use wp_mail so it put content_type to text/html and when hook action WPBE hook action phpmailer_init plays and method send_content_type/** * Always set content type to HTML * * @since 0.1 * @param string $content_type * @return string $content_type */ function set_content_type( $content_type ) { // Only convert if the message is text/plain and the template is ok if ( $content_type == 'text/plain' && $this->check_template() === true ) { $this->send_as_html = true; return $content_type = 'text/html'; } else { $this->send_as_html = false; } return $content_type; }
private var send_as_html go to false, so no html template…
I have to force send plain text email to event manager to let WPBE play with correct content type..
Is the normal operation ? Why do not force directly send_as_html to true ? I don’t see all consequences …It just a feedback of an happy WPBE user ??
Greats
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WPBE / WP Events’ is closed to new replies.