Support » Plugin: WP PGP Encrypted Emails » Contact Form 7 – HTML breaks

  • Resolved schamlos

    (@schamlos)


    Hi there,

    I set up a form so people can apply for projects. I am using Contact Form 7 for this purpose. All the inputed information is send to our main mail adress with html support (the “use html” box is checked). So far everythink worked well. Now I would like to use your greate plugin to make the data transfer safe on every end. This works fine up to some point, meaning the mails are send encrypted and can be decrypted by us.

    However, the html code seems to break. The header of the emails received looks like this:

    Return-path: <schamlos.be_run@immer7-11.glei.ch>
    Envelope-to: info@schamlos.be
    Delivery-date: Mon, 12 Aug 2019 09:07:01 +0200
    Received: from immer6-21.glei.ch ([192.168.1.99]) 
    	by immer12-20.glei.ch with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
    	(Exim 4.92)
    	id 1hx4Q0-0002il-Q1
    	for info@schamlos.be; Mon, 12 Aug 2019 09:07:00 +0200
    Received: from localhost ([127.0.0.1]) 
    	by immer6-21.glei.ch with esmtp (Exim 4.92)
    	id 1hx4Py-0006Y6-48
    	for info@schamlos.be; Mon, 12 Aug 2019 03:06:58 -0400
    X-Virus-Scanned: amavisd-new at glei.ch
    Received: from immer6-21.glei.ch ([127.0.0.1])
    	by localhost (immer6-21.glei.ch [127.0.0.1]) (amavisd-new, port 10024)
    	with ESMTP id qs4mtj6xsxBz for <info@schamlos.be>;
    	Mon, 12 Aug 2019 03:06:54 -0400 (EDT)
    Received: from immer7-11.glei.ch ([192.168.1.87]) 
    	by immer6-21.glei.ch with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
    	(Exim 4.92)
    	id 1hx4Pt-0006Xu-Mu
    	for info@schamlos.be; Mon, 12 Aug 2019 03:06:53 -0400
    Received: by immer7-11.glei.ch with local (Exim 4.92)
    	id 1hx4Pq-0000on-6U
    	for info@schamlos.be; Mon, 12 Aug 2019 09:06:51 +0200
    To: info@schamlos.be
    Subject: Eingabe: ####
    Date: Mon, 12 Aug 2019 07:06:50 +0000
    From: "#### via admin@schamlos.be" <admin@schamlos.be>
    Reply-To: ex.am@p.le
    Message-ID: <22da9526a7c2555bcf552eca59c50bfa@schamlos.be>
    X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer)
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    	boundary="b1_22da9526a7c2555bcf552eca59c50bfa"
    Content-Transfer-Encoding: 8bit
    
    This is a multi-part message in MIME format.
    
    --b1_22da9526a7c2555bcf552eca59c50bfa
    Content-Type: text/plain; charset=us-ascii
    ....
    

    Reading other posts concerning this topic, the problem seem to be the last line: Content-Type: text/plain; charset=us-ascii. I guess it should be utf-8? Am I right about this? Do you know how to change Contact Form 7’s behaviour to use a different encoding?

    Every bit of help is greatly appreciated.

    Thank you very much and kind regards,
    Sam*

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Meitar

    (@meitar)

    HTML multi-part MIME messages are not (yet) supported by this plugin. I recommend sending only plain text messages, instead.

    Thanks a lot for the feedback. I did change to plain text. Now all the linebreaks are gone which reduces readability greatly. If I disable WP PGP Encrypted Emails the line breaks reappear. Where should I look for the error?

    The header looks like this:

    Return-path: <schamlos.be_run@immer7-11.glei.ch>
    Envelope-to: info@schamlos.be
    Delivery-date: Wed, 21 Aug 2019 21:13:50 +0200
    Received: from immer6-21.glei.ch ([192.168.1.99]) 
    	by immer12-20.glei.ch with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
    	(Exim 4.92)
    	id 1i0W3J-0008Se-Q5
    	for info@schamlos.be; Wed, 21 Aug 2019 21:13:49 +0200
    Received: from localhost ([127.0.0.1]) 
    	by immer6-21.glei.ch with esmtp (Exim 4.92)
    	id 1i0W3H-0002uP-83
    	for info@schamlos.be; Wed, 21 Aug 2019 15:13:47 -0400
    X-Virus-Scanned: amavisd-new at glei.ch
    Received: from immer6-21.glei.ch ([127.0.0.1])
    	by localhost (immer6-21.glei.ch [127.0.0.1]) (amavisd-new, port 10024)
    	with ESMTP id Xvj6uh_Pkw8I for <info@schamlos.be>;
    	Wed, 21 Aug 2019 15:13:44 -0400 (EDT)
    Received: from immer7-11.glei.ch ([192.168.1.87]) 
    	by immer6-21.glei.ch with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
    	(Exim 4.92)
    	id 1i0W3D-0002uE-H2
    	for info@schamlos.be; Wed, 21 Aug 2019 15:13:43 -0400
    Received: by immer7-11.glei.ch with local (Exim 4.92)
    	id 1i0W3B-0006wz-BZ
    	for info@schamlos.be; Wed, 21 Aug 2019 21:13:41 +0200
    To: info@schamlos.be
    Subject: Eingabe: Das Projekt
    Date: Wed, 21 Aug 2019 19:13:41 +0000
    From: =?UTF-8?Q?Samira_Mich=C3=A8le_Descombes_via_admin=40schamlos=2Ebe?= <admin@schamlos.be>
    Reply-To: samira.descombes@yahoo.com
    Message-ID: <fd35758c718bde85d4a37dc3b77c9785@schamlos.be>
    X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    • This reply was modified 2 months, 3 weeks ago by  schamlos.
    Plugin Author Meitar

    (@meitar)

    There is no error. HTML line breaks do not display as line breaks in plain text messages because plain text messages are not HTML.

    hi there,

    by linebreaks I simply mean blank lines to for example separate paragraphs in the email. No html tags ar in use.

    They disappear when WP PGP Encrypted Emails is used and reappear when the plugin is deactivated.

    best

    Plugin Author Meitar

    (@meitar)

    This plugin makes no changes to the content of your message. You may simply not be noticing the fact that a line break exists because of the way your email client software is rendering the message. ¯\_(ツ)_/¯

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.