• Resolved Pettluff

    (@pettluff)


    Hi!

    Great plugin!

    I just have a few problems. The contact form works just fine, and I have created a message body that should give the recipient all the information I would like. And it does, but here is the problem.

    The recieved mail is really, really ugly and unorganized.
    Special characters (I am norwegian, we use ?-?-?) are exchanged with many other characthers. This makes it hard to read. The HTML-codes I have used in the message body, like
    to create som spaces, have no effect. Everything is just in one, giant, messy text block.

    These two problems should be solved, and I don’t know how. Any suggestions?

    Example of recieved mail:

    Svar til: [email protected]
    Content-Type: text/html; charset=UTF-8
    From: My Name <[email protected]>
    Sender: [email protected]
    To: [email protected]
    Subject: Ny bestilling
    Date: Sat, 24 Oct 2015 12:58:28 +0000
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline
    MIME-Version: 1.0

    <p>Hei. </p>=0A<p>Du har f=C3=A5tt en ny bestilling p=C3=A5 Friluftsutle=
    ie.no</p>=0A<p><b>Info om kunde:</b>
    =0ANavn: Steffen Berland <br /=
    =0ATelefonnr: 95172827
    =0AE-postadresse: <[email protected]></p>=
    =0A<p><b>Bestillingen inneholder f=C3=B8lgende produkter:</b>
    =0AG=
    amasjer fra Salewa, kr 50 per dag
    =0AFlytevest, voksen, kr 30 per d=
    ag</p>=0A<p>=0AF=C3=B8lget best=C3=A5r av 4 personer.</p>=0A<p><b>Aksept=
    av eget ansvar ved l=C3=A5n av utstyr:</b>
    =0AJeg aksepterer at de=
    rsom utstyret blir =C3=B8delagt, eller p=C3=A5f=C3=B8res skader, skal je=
    g betale for nytt, tilsvarende produkt.</p>=0A<p><b>Kommentarer fra kund=
    e:</b>
    =0AHeisann!</p>=0A

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 14 replies - 1 through 14 (of 14 total)
  • I’ll try and help you. First would you try my own contact form so we can make sure it’s a sending issue and not a receiving issue.

    If it works we can compare the headers and see where you went wrong.

    Thread Starter Pettluff

    (@pettluff)

    Thank you!

    I tried using your contact form, and the e-mail I got was perfect. So it is not a receiving issue, I suppose.

    Your Norwegian characters looked good to me, I assume they looked good to you as well.

    Are the email headers the same between the two emails? If so, then the content is not being created correctly. I also use Contact Form 7. Perhaps you have another plugin changing the content before it is sent. Can you install this plugin and post the Diagnostic Test so we can see if there are other plugins interfering with the email: https://www.ads-software.com/plugins/postman-smtp/

    Thread Starter Pettluff

    (@pettluff)

    There are no heading showing in the mail like it was when sent from my form. Though, if I check the header manually in my client there are a few differences. In the mail from your form, the header states clearly that content type is plain text, and charset is UTF-8. The header, when checked manually, from my form says nothing about that. I am a little bit confused by the fact that the e-mail from my form has a header in the mail itself, with this info (including UTF-8??):

    Svar til: [email protected]
    Content-Type: text/html; charset=UTF-8
    From: Steffen Berland <[email protected]>
    Sender: [email protected]
    To: [email protected]
    Subject: Ny bestilling
    Date: Sat, 24 Oct 2015 12:58:28 +0000
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline
    MIME-Version: 1.0

    Postman-SMTP-diagnostic:
    OS: Linux frontpage.specialservers.com 2.6.32-458.6.2.lve1.2.30.el6.x86_64 #1 SMP Fri Jul 12 15:02:22 EEST 2013 x86_64
    HTTP User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7
    PHP: Linux 5.2.17 C
    PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=Yes
    WordPress: 4.3.1 nb_NO
    WordPress Theme: Shopkeeper
    WordPress Plugins: BBSpoiler, Coming Soon / Maintenance Mode From Acurax, Contact Form 7 Datepicker, Contact Form 7, WPBakery Visual Composer, Postman SMTP, Regenerate Thumbnails, Smart Manager, WooCommerce Header Category Image, WooCommerce
    WordPress wp_mail Filter(s): wp_staticize_emoji_for_email
    Postman: 1.6.24
    Postman Sender Domain (Envelope|Message): hotmail.com | hotmail.com
    Postman Prevent Message Sender Override (Email|Name): No | No
    Postman Transport URI: smtp:tls:plain://smtp.live.com:587
    Postman Transport Status (Configured|Ready|Connected): Yes | Yes | Yes
    Postman Deliveries (Success|Fail): 12 | 5

    the mail from your form, the header states clearly that content type is plain text

    I have my CF7 set as plain text whereas yours is set to HTML (and your form has HTML tags in it). that’s an expected result.

    There are no heading showing in the mail like it was when sent from my form. I am a little bit confused by the fact that the e-mail from my form has a header in the mail itself

    I didn’t realize your headers were showing in your content. This means somehow there is a line break in yours headers.. possibly the very first line. Everything after a line break is treated as email content. If the line break is being added after the email leaves your system, there’s nothing you can do ??

    From the Diagnostic Test, I don’t think the problem is happening in your WordPress site.

    Is it only Contact Form 7 that has this problem? What about WooCommerce? What about the Postman test email?

    Are you viewing the email on the Hotmail.com website?

    Thread Starter Pettluff

    (@pettluff)

    Hm.. It’s only in CF7 the problem appears, and there is no difference from viewing in a mail client than webmail.

    So there is nothing I can do to fix this problem? ??

    Thank you for trying to help, by the way! Much appreciated!

    It’s only in CF7 the problem appears

    So strange.

    In Tools > Email Log you will find the session transcript for the CF7 emails. Would you please post an entire session transcript here (but remove the AUTH line, it has your Hotmail name/password encoded).

    Let’s double-check that the problem isn’t on your site.

    Thread Starter Pettluff

    (@pettluff)

    220 BLU436-SMTP114.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: 8.0.9200.16384 ready at Sat, 24 Oct 2015 05:58:30 -0700
    EHLO localhost
    250-BLU436-SMTP114.smtp.hotmail.com Hello [158.255.44.214]
    250-TURN
    250-SIZE 41943040
    250-ETRN
    250-PIPELINING
    250-DSN
    250-ENHANCEDSTATUSCODES
    250-8bitmime
    250-BINARYMIME
    250-CHUNKING
    250-VRFY
    250-TLS
    250-STARTTLS
    250 OK
    STARTTLS
    220 2.0.0 SMTP server ready
    EHLO localhost
    250-BLU436-SMTP114.smtp.hotmail.com Hello [158.255.44.214]
    250-TURN
    250-SIZE 41943040
    250-ETRN
    250-PIPELINING
    250-DSN
    250-ENHANCEDSTATUSCODES
    250-8bitmime
    250-BINARYMIME
    250-CHUNKING
    250-VRFY
    MAIL FROM:<[email protected]>
    250 2.1.0 [email protected]….Sender OK
    RCPT TO:<[email protected]>
    250 2.1.5 [email protected]
    DATA
    354 Start mail input; end with <CRLF>.<CRLF>
    X-Mailer: Postman SMTP 1.6.24 for WordPress (https://www.ads-software.com/plugins/postman-smtp/)
    Svar til: [email protected]
    Content-Type: text/html; charset=UTF-8
    From: Steffen Berland <[email protected]>
    Sender: [email protected]
    To: [email protected]
    Subject: Ny bestilling
    Date: Sat, 24 Oct 2015 12:58:28 +0000
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline
    MIME-Version: 1.0

    <p>Hei. </p>=0A<p>Du har f=C3=A5tt en ny bestilling p=C3=A5 Friluftsutle=
    ie.no</p>=0A<p><b>Info om kunde:</b>
    =0ANavn: Steffen Berland <br /=
    >=0ATelefonnr: 95172827
    =0AE-postadresse: <[email protected]></p>=
    =0A<p><b>Bestillingen inneholder f=C3=B8lgende produkter:</b>
    =0AG=
    amasjer fra Salewa, kr 50 per dag
    =0AFlytevest, voksen, kr 30 per d=
    ag</p>=0A<p>=0AF=C3=B8lget best=C3=A5r av 4 personer.</p>=0A<p><b>Aksept=
    av eget ansvar ved l=C3=A5n av utstyr:</b>
    =0AJeg aksepterer at de=
    rsom utstyret blir =C3=B8delagt, eller p=C3=A5f=C3=B8res skader, skal je=
    g betale for nytt, tilsvarende produkt.</p>=0A<p><b>Kommentarer fra kund=
    e:</b>
    =0AHeisann!</p>=0A
    .
    250 2.6.0 <[email protected]> Queued mail for delivery

    What the heck is

    Svar til: [email protected]

    AFAIK, that’s not a valid header. Does it only show in the CF7 transcripts?

    Check the contents of “Additional Headers” in your CF7 Mail tab.

    Thread Starter Pettluff

    (@pettluff)

    Yeah, it’s only in the CF7 transcripts. In norwegian it means “answer to”.
    I found it in the addinital headers, and removed it. Will try sending new e-mails now!

    In norwegian it means “answer to”.

    Change it to: Reply-To

    It represents the email to use when you click Reply. That’s probably your issue.

    Thread Starter Pettluff

    (@pettluff)

    Ahhhhh, it worked!
    Thank you SO much!

    I don’t know where that add. header came from, I can’t remember putting it there myself – but taking it away/changing it did solve the problem.

    Thank you very, very much for your help!

    No problem! Glad I could help ??

    You might also want to add a From: additional header because [email protected] is nonsensical. Try:

    From: [your-name] <[your-email]>

    .. Assuming [your-name] and [your-email] are valid tags for the visitor name and email address in your form!

    Thread Starter Pettluff

    (@pettluff)

    I will do that.
    Thanks again for your help!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Ugly e-mails, no html and no special characters’ is closed to new replies.