Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hopefully hellonico will add the following code to the next release. Here is how to add official Sendgrid plugin compatibility.

    Edit wpbe.php

    Add the following code near line 500, just somewhere inside the main class:

    function sendgrid_compatibility( $message, $content_type ) {
    
    			if ( $this->check_template() && $content_type != 'text/plain') {
    				$message = $this->process_email_html( $message );
    			}
    
    			return $message;
    		}

    Then add the following around line 60. Just next to where the mandrill compatibility code is.

    add_filter( 'sendgrid_override_template', array( $this, 'sendgrid_compatibility' ) );

    With those 2 additions, it should work to add the template to HTML emails.

Viewing 1 replies (of 1 total)