• Resolved MichaelSkril

    (@michaelskril)


    Hi,

    Usually an HTML email should also contain a plain text version. Some SPAM detectors don’t like emails without a plain text version.

    When I send a test mail from your plugin, it sends that HTML only. Mailgun support told me that is because the API call did not specific that a plain text version should be attached.

    Would you mind updating the API call to send HTML and plain text?

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    Hi,

    Thanks for your feedback!

    I’ve created a feature request: https://github.com/awesomemotive/wp-mail-smtp/issues/101
    Perhaps, it will be included in the next major release.

    I just ran into this same type of issue and found a solution. The system generated email from WordPress (such as password reset or a comment on a post) come as one long line of text. So, to fix it, don’t use the API. Rather than using the plugin’s ‘Mailgun’ mailer option, choose ‘Other SMTP‘ as your mailer and manually fill in the Mailgun information. For authentication, use your Mailgun credentials for the domain (found in your Mailgun account under ‘Domain Settings’. Use ‘Default SMTP Login‘ and ‘Default Password‘) set port to 587 with TLS. And Mailgun’s host is smtp.mailgun.org.

    Same here for Mailgun and Sendgrid.
    The email messages aren’t valid anymore. I installed the native mailgun/sendgrid plugin and it works.
    It’s not a feature but a bug, by default emails in WordPress are text mails and not HTML.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Mailgun API – only sends HTML, no plain text’ is closed to new replies.