• Resolved DK

    (@dip-recipes)


    I’m using the API option in the plugin to send mail through Sparkpost, but delivered emails are appearing as plain text.

    Is the plugin only populating the text field in the transmission API? Would there be a way to send as HTML as well?

    Otherwise, plugin is working great.

    https://www.ads-software.com/plugins/sparkpost/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter DK

    (@dip-recipes)

    Some additional info, the SparkPost test email shows the HTML MIME part.

    However, I’m using MailPoet (with the modification to use WP mail) and that email is being delivered through Sparkpost, but it is in plain text only. MailPoet is creating both MIME parts and the email shows as HTML when not delivered through SparkPost.

    Any ideas?

    Plugin Contributor rajuru

    (@rajuru)

    Hello @dk,
    Thanks for posting it. I’m one of the developers of the plugin. I could reproduce this issue at my end. I’ve created an issue in our plugin repo which you are welcome to track. I’ll keep that updated. Hopefully, we’ll issue a fix next week. Meanwhile, please keep using SMTP if ports (587/2525) is open in your server. Apologies for inconvenience and thanks for reporting it.

    Plugin Contributor rajuru

    (@rajuru)

    Thanks @dk for the additional info. Test email explicitly use content type filter. So it’ll always be in HTML. However, we didn’t force content type for normal uses. I’ll look into this and will set correct content type.

    Any ETA on this, I’m tempted to roll back to last version before the API, seems to effect quite a few plugins ( Like Wordfence ) but its effecting user emails on a membership site which is a real pain.

    Great plugin though thanks, hopefully this is sorted quickly.

    Plugin Contributor rajuru

    (@rajuru)

    Hello @rivmedia
    I’m happy to say the PR for a fix is already out. It’ll get merged soon. Please follow this issue in our repo for updates.

    https://github.com/SparkPost/wordpress-sparkpost/issues/12

    Thanks

    Awesome Rajuru, Thanks for the prompt work. Look forward to all our sites getting updated ??

    Plugin Contributor rajuru

    (@rajuru)

    I’m excited to announce that v2.0.1 is released which is supposed to fix this issue. Please let us know your feedback after you upgrade.

    Thanks

    Thread Starter DK

    (@dip-recipes)

    I do see the messages coming through as multipart with plain text and html parts. I have another issue tho, but I’m guessing it’s related to my integration with MailPoet. I know someone mentioned that it worked fine using MailPoet and SMTP, but I’m currently on BlueHost so can’t send via SMTP.

    I’ve got MailPoet installed to send new post updates, I’ve modified its code to turn on the hidden option to send using WP Mail instead of PHP mail. That’s working in terms of getting the mail delivered through sparkpost, but the html part has the html stripped out and is basically the same as the plain text part.

    Plugin Contributor rajuru

    (@rajuru)

    Hello @dk
    Please create an issue in https://github.com/SparkPost/wordpress-sparkpost/issues with the debug messages that you get in the test email. We’ll try to help you over there.

    Thanks

    I have version 2.2 and when I send the email through MailPoet, it does not send the mail with HTML. When I click on the link to preview in browser, the email generated is HTML only. The HTML is getting stripped in between.

    Did this issue resolved OR I am missing something ?

    I think this is a problem in Mailpoet and have made it work in our site using a fix I have raised with them here: https://www.ads-software.com/support/topic/integraiton-with-sparkpost-http-api?replies=3#post-8353435

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Mail being sent as plain text’ is closed to new replies.