Viewing 2 replies - 1 through 2 (of 2 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.

    @waskosky

    You just made my day man. It works amazingly.

    Thank you!!!!!!!!!!!!!!!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working with Sendgrid plugin’ is closed to new replies.