Support » Plugin: WP Mail SMTP by WPForms » [v1.2.4] Sendgrid + Contact Form 7 issues

  • Resolved litemotiv

    (@litemotiv)


    WP Mail SMTP: 1.2.4

    Since recently we are seeing issues when sending mail with CF7 through SendGrid:

    – Plaintext mail linebreaks are stripped, causing all text to appear on one line
    – Sending HTML mail fails with a generic error “mail could not be sent”

    Please advise how to fix this, let me know if you require any additional information.
    -lite

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

    (@slaffik)

    Might be related: https://github.com/awesomemotive/wp-mail-smtp/issues/101

    What about Email Test – does it work correctly? You can tweak its content in /src/Admin/Pages/Test.php::114 to include html and line breaks to test different scenarios.

    Thanks for your reply Slava.

    The default Email Test (single line) works okay. However, when i manually add an \r\n to the contents a linebreak doesn’t appear (i’m not sure if those are stripped anywhere later in the process). Adding HTML BR appears as plain text as expected.

    The mentioned behaviour is not visible on another installation with CF7 that uses PHP mail instead of WP Mail SMTP through SendGrid, there the plain-text linebreaks stay intact and HTML mail is sent okay.

    Update: the Test mail i sent with a manual \r\n is received as such:

    
    Content-Type: text/html; charset=UTF-8
    Date: Fri, 02 Feb 2018 12:23:05 +0000 (UTC)
    From: [removed]
    Mime-Version: 1.0
    To: [removed]
    Message-ID: <BLtPMyKpTTGQQkAroyV3YA@ismtpd0002p1lon1.sendgrid.net>
    Subject: WP Mail SMTP: Test email to [removed]
    
    This email was sent by SendGrid mailer,=20
     and generated by the WP Mail SMTP WordPress plugin.
    

    So the linebreak is visible but ignored as the content-type is text/html instead of text/plain.

    Update: i found out that this seems to be caused by using the API method to send mail through SendGrid. When using “Other SMTP” and entering the SendGrid credentials manually, everything seems to work as intended.

    Plugin Author Slava Abakumov

    (@slaffik)

    Yes, the issue is with the not correct handling of html and plain emails.

    I will work on this issue for 1.3.0 release later this month.

    Thanks for reporting!

    I am seeing this issue as well. Is 1.3.0 coming out soon?

    I too have this problem but with Mailgun – plain text emails are being sent as HTML and it messes up the formatting. I would think this would be a high priority fix but clicking through on your GitHub link, it looks like you have been aware of this problem since December of last year. Is it going to be fixed anytime soon?

    Having the same issues, looking forward for the fix in the next version 🙂

    I’m also experiencing this issue when using the plugin with the SendGrid API as reported by @litemotiv above. Thank you in advance @slaffik for the upcoming fix that will be released in v1.3.0.

    I am using the Sendgrid plugin now with Sendgrid API, and it works correctly.

    I’m still experiencing this issue on a brand new installation.
    Selecting ‘Use HTML content type’ in CF7 seems to prevent all form submissions.
    The plugin version is currently at 1.2.5 – hasn’t the problem been fixed yet?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[v1.2.4] Sendgrid + Contact Form 7 issues’ is closed to new replies.