• Resolved fran4444

    (@fran4444)


    Can SendGrid be configured to work with Email Templates?

    Just as you have provided a code snippet to make WP Better Emails work with SendGrid, would it be possible to make such for the plugin Email Templates?
    https://wordpress.org/plugins/email-templates/

    I’m not code suavely enough to understand how to modify the WPBE snippet to make it work with Email Templates. Would a custom snippet be possible from you, or would this require more extensive programing expertise and a need to search for code help?

    Using: Api Key / SMTP / port 587
    WP: 4.6 / PHP 5.6.24

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Twilio SendGrid

    (@team-rs)

    Hi.

    Thank you for reporting this issue. We will test to see what steps you need to take in order to use that plugin with the SendGrid plugin. We will let you know what we find.

    Plugin Author Twilio SendGrid

    (@team-rs)

    Hi.

    As you said, the Email Templates plugin doesn’t integrate with the SendGrid plugin. We have reproduced this issue.

    From looking at the source code on the Email Templates plugin we can see that the author(s) did integrate with several other plugins including wpMandrill.

    For this case, we cannot integrate with this plugin, the Email Templates plugin author(s) need to integrate with the SendGrid plugin as they did for wpMandrill. You should probably request this on their Support page.

    As a temporary solution, as you requested, you can try this :

    function change_sendgrid_html_email( $message ) {
        $mailer = new Mailtpl_Mailer( 'mailtpl', MAILTPL_VERSION );
    	$aux['html'] = $message;
    	$aux = $mailer->send_email_mandrill( $aux );
    	return $aux['html'];
    }
    
    add_filter( 'sendgrid_mail_html', 'change_sendgrid_html_email' );

    Keep in mind that this is of a hack-like nature and we cannot offer any guarantees for this. It will only work if you set the Content-Type to text/html on the SendGrid Plugin Settings Page.

    We would recommend you wait for the developers of the Email Templates to implement an integration or you can try using another plugin that does work with the SendGrid plugin.

    Thanks,
    SendGrid

    Thread Starter fran4444

    (@fran4444)

    Thanks for looking into this.

    Have made the request of Email Templates and will post back here with results if any.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can SendGrid be configured to work with Email Templates?’ is closed to new replies.