• Resolved tomkinsrichard

    (@tomkinsrichard)


    The email coming from cforms2, looks like what I have posted below.

    I thought it was visually, supposed to be pretty much like the actual form itself.

    What have I done wrong or what do I need to adjust to make the email sent to the admin look just like the form the user submitted.

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    --b1_4fab364fcdf7a330f8a30960acea2e27
    Content-Type: text/plain; charset = "utf-8"
    Content-Transfer-Encoding: quoted-printable
    
    A new submission (form: "Your default form")
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
    Submitted on: February 23, 2015
    Via: https://neuron-tech.ca/wp/?page_id=3D13388&preview=3Dtrue
    By 209.197.139.189 (visitor IP).
    
    --b1_4fab364fcdf7a330f8a30960acea2e27
    Content-Type: text/html; charset = "utf-8"
    Content-Transfer-Encoding: quoted-printable
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.o=
    rg/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns=3D"https://www.w3.org/1999/xhtml">
    <head><title></title></head>
    <body style=3D"margin:0; padding:0; font-family: Verdana, Arial; font-siz=
    e: 13px; color:#555;"><p style=3D"font-size: 90%; margin:0; background:#a=
    aaaaa; padding:1em 2em 1em 0.6em; color:#555555; text-shadow:0 1px 0 #c5c=
    5c5; border-bottom:1px solid #9d9d9d;">A form has been submitted on Febru=
    ary 23, 2015, via: https://neuron-tech.ca/wp/?page_id=3D13388&preview=3D=
    true [IP 209.197.139.189]</p>
    <div style=3D"background:#f0f0f0; border-top:1px solid #777; box-shadow:0=
     -2px 2px #999; -webkit-box-shadow:0 -2px 2px #999;"><span style=3D"font-=
    size: 90%; margin:0; background:#fcfcfc; padding:1em 2em 1em 0.6em; color=
    :#888888; display:inline-block;">Your default form</span><table cellpaddi=
    ng=3D"0" cellspacing=3D"0" style=3D"width:auto; margin: 0.2em 2em 2em; fo=
    nt-size: 100%;"><tr><td style=3D"color:#555; padding:1em 0 0.4em; font-si=
    ze: 110%; font-weight:bold; text-shadow:0 1px 0 #fff;" colspan=3D"2">My F=
    ieldset</td></tr>
    <tr><td style=3D"padding: 0.3em 1em; border-bottom:1px dotted #ddd; paddi=
    ng-right:2em; color:#888; width:1%;">Your Name</td><td style=3D"padding: =
    0.3em 1em; border-bottom:1px dotted #ddd; padding-left:0; color:#333;">Ri=
    chard Tomkins</td></tr>
    <tr><td style=3D"padding: 0.3em 1em; border-bottom:1px dotted #ddd; paddi=
    ng-right:2em; color:#888; width:1%;">Email</td><td style=3D"padding: 0.3e=
    m 1em; border-bottom:1px dotted #ddd; padding-left:0; color:#333;">richar=
    [email protected]</td></tr>
    <tr><td style=3D"padding: 0.3em 1em; border-bottom:1px dotted #ddd; paddi=
    ng-right:2em; color:#888; width:1%;">Website</td><td style=3D"padding: 0.=
    3em 1em; border-bottom:1px dotted #ddd; padding-left:0; color:#333;">none=
    </td></tr>
    <tr><td style=3D"padding: 0.3em 1em; border-bottom:1px dotted #ddd; paddi=
    ng-right:2em; color:#888; width:1%;">Message</td><td style=3D"padding: 0.=
    3em 1em; border-bottom:1px dotted #ddd; padding-left:0; color:#333;">This=
     is Test three</td></tr>
    </table></div>
    </body></html>
    
    --b1_4fab364fcdf7a330f8a30960acea2e27--

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

Viewing 15 replies - 1 through 15 (of 30 total)
  • I would say
    1. Your email client is really old and doesn’t support what you’re trying to do or
    2. Your email is missing the header “Content-Type: multipart/mixed;” .. hard to say without actually seeing the headers.

    Thread Starter tomkinsrichard

    (@tomkinsrichard)

    Jason, thank you for your input.

    The mail client is the latest version of Windows Live Mail, and for other emails it does render HTML.

    I do see the form at gmail so I suppose it could be the darn client.

    I will try Thunderbird as the client next.

    The full message source is as follows,

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    Delivered-To: [email protected]
    Received: by 10.180.160.169 with SMTP id xl9csp1675687wib;
            Mon, 23 Feb 2015 18:00:29 -0800 (PST)
    X-Received: by 10.66.182.166 with SMTP id ef6mr24455658pac.77.1424743227166;
            Mon, 23 Feb 2015 18:00:27 -0800 (PST)
    Return-Path: <[email protected]>
    Received: from relay.mailchannels.net (tkt-001-i375.relay.mailchannels.net. [72.249.144.180])
            by mx.google.com with ESMTP id n6si2196934pdk.67.2015.02.23.18.00.25
            for <[email protected]>;
            Mon, 23 Feb 2015 18:00:27 -0800 (PST)
    Received-SPF: none (google.com: [email protected] does not designate permitted sender hosts) client-ip=72.249.144.180;
    Authentication-Results: mx.google.com;
           spf=none (google.com: [email protected] does not designate permitted sender hosts) [email protected];
           dmarc=fail (p=NONE dis=NONE) header.from=gmail.com
    X-Sender-Id: hostpapa|x-authuser|neuro952
    Received: from hp74.hostpapa.com (ip-10-33-12-218.us-west-2.compute.internal [10.33.12.218])
    	by relay.mailchannels.net (Postfix) with ESMTPA id 1ADB760504
    	for <[email protected]>; Tue, 24 Feb 2015 02:00:23 +0000 (UTC)
    X-Sender-Id: hostpapa|x-authuser|neuro952
    Received: from hp74.hostpapa.com ([TEMPUNAVAIL]. [10.245.86.88])
    	(using TLSv1 with cipher DHE-RSA-AES256-SHA)
    	by 0.0.0.0:2500 (trex/5.4.6);
    	Tue, 24 Feb 2015 02:00:23 +0000
    X-MC-Relay: Junk
    X-MailChannels-SenderId: hostpapa|x-authuser|neuro952
    X-MailChannels-Auth-Id: hostpapa
    X-MC-Loop-Signature: 1424743223317:3080018402
    X-MC-Ingress-Time: 1424743223316
    Received: from neuro952 by hp74.hostpapa.com with local (Exim 4.84)
    	(envelope-from <[email protected]>)
    	id 1YQ4nK-000ubm-1M
    	for [email protected]; Mon, 23 Feb 2015 21:00:18 -0500
    To: [email protected]
    Subject: A comment from Richard Tomkins
    X-PHP-Script: neuron-tech.ca/wp/wp-admin/admin-ajax.php for 209.197.139.189
    Date: Tue, 24 Feb 2015 02:00:17 +0000
    From: "[email protected]" <[email protected]>
    Message-ID: <[email protected]>
    X-Priority: 3
    X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
    Date: Tue, 24 Feb 2015 02:00:17 +0000
    Reply-to: [email protected]
    X-Priority: 3
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    	 boundary="b1_4fab364fcdf7a330f8a30960acea2e27"
    MIME-Version: 1.0
    Content-Type: multipart/alternative; charset=
    X-OutGoing-Spam-Status: No, score=4.7
    X-AuthUser: neuro952
    Content-Transfer-Encoding: 7bit
    
    --b1_4fab364fcdf7a330f8a30960acea2e27
    Content-Type: text/plain; charset = "utf-8"
    Content-Transfer-Encoding: quoted-printable
    
    A new submission (form: "Your default form")
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
    Submitted on: February 23, 2015
    Via: https://neuron-tech.ca/wp/?page_id=3D13388&preview=3Dtrue
    By 209.197.139.189 (visitor IP).
    
    --b1_4fab364fcdf7a330f8a30960acea2e27
    Content-Type: text/html; charset = "utf-8"
    Content-Transfer-Encoding: quoted-printable
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.o=
    rg/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns=3D"https://www.w3.org/1999/xhtml">
    <head><title></title></head>
    <body style=3D"margin:0; padding:0; font-family: Verdana, Arial; font-siz=
    e: 13px; color:#555;"><p style=3D"font-size: 90%; margin:0; background:#a=
    aaaaa; padding:1em 2em 1em 0.6em; color:#555555; text-shadow:0 1px 0 #c5c=
    5c5; border-bottom:1px solid #9d9d9d;">A form has been submitted on Febru=
    ary 23, 2015, via: https://neuron-tech.ca/wp/?page_id=3D13388&preview=3D=
    true [IP 209.197.139.189]</p>
    <div style=3D"background:#f0f0f0; border-top:1px solid #777; box-shadow:0=
     -2px 2px #999; -webkit-box-shadow:0 -2px 2px #999;"><span style=3D"font-=
    size: 90%; margin:0; background:#fcfcfc; padding:1em 2em 1em 0.6em; color=
    :#888888; display:inline-block;">Your default form</span><table cellpaddi=
    ng=3D"0" cellspacing=3D"0" style=3D"width:auto; margin: 0.2em 2em 2em; fo=
    nt-size: 100%;"><tr><td style=3D"color:#555; padding:1em 0 0.4em; font-si=
    ze: 110%; font-weight:bold; text-shadow:0 1px 0 #fff;" colspan=3D"2">My F=
    ieldset</td></tr>
    <tr><td style=3D"padding: 0.3em 1em; border-bottom:1px dotted #ddd; paddi=
    ng-right:2em; color:#888; width:1%;">Your Name</td><td style=3D"padding: =
    0.3em 1em; border-bottom:1px dotted #ddd; padding-left:0; color:#333;">Ri=
    chard Tomkins</td></tr>
    <tr><td style=3D"padding: 0.3em 1em; border-bottom:1px dotted #ddd; paddi=
    ng-right:2em; color:#888; width:1%;">Email</td><td style=3D"padding: 0.3e=
    m 1em; border-bottom:1px dotted #ddd; padding-left:0; color:#333;">richar=
    [email protected]</td></tr>
    <tr><td style=3D"padding: 0.3em 1em; border-bottom:1px dotted #ddd; paddi=
    ng-right:2em; color:#888; width:1%;">Website</td><td style=3D"padding: 0.=
    3em 1em; border-bottom:1px dotted #ddd; padding-left:0; color:#333;">none=
    </td></tr>
    <tr><td style=3D"padding: 0.3em 1em; border-bottom:1px dotted #ddd; paddi=
    ng-right:2em; color:#888; width:1%;">Message</td><td style=3D"padding: 0.=
    3em 1em; border-bottom:1px dotted #ddd; padding-left:0; color:#333;">This=
     is Test three</td></tr>
    </table></div>
    </body></html>
    
    --b1_4fab364fcdf7a330f8a30960acea2e27--
    Thread Starter tomkinsrichard

    (@tomkinsrichard)

    AHA!

    Windows Live Mail does not show the HTML cforms formatted form.

    GMAIL in a browser shows the HTML cforms formatted form.

    Thunderbird shows the HTML cforms formatted form.

    Reminiscent of the way Internet Explorer 5 rendered web pages years ago.. you could either code your page correctly and not have it display in IE, or code it badly and break everywhere else. <sigh> Microsoft

    I’m having the exact same problem. I’m not quite sure if this issue was caused by the new plugin or if it was already an issue of the original one. Can anyone confirm this? I did a quick comparison of their lib_email.php files and see some differences.

    Original one was fine. Seems to be this one.

    Thread Starter tomkinsrichard

    (@tomkinsrichard)

    shansta,

    Would you kindly elaborate on what you are talking about.
    Your statement does not provide any insight into the current problem.

    I think it has something to do with how the headers are being generated. I’ve been trying to fix this for the past couple of hours now with no luck. The headers are being generated from the mail_header() function of lib_email.php. By the way the original plugin used the mail() function and this one uses wp_mail() which accepts the header parameter as an array.

    So another problem with Windows Live is that attached files won’t display. The first issue was somewhat okay since you can just unchecked “Enable HTML” and use plain text, but not being able to see attachments was a major problem for me.

    I finally gave up on fixing it for now and decided to use the old lib_email.php file from the original plugin and renamed the class to “cforms2_mail”. Surprisingly it worked and fixed the issues I mentioned.

    I’m not quite sure about the ramifications of doing this so I won’t recommend it for now as other parts of the plugin might break. I hope the author can give input regarding this. I’ll do further testing tomorrow.

    Thread Starter tomkinsrichard

    (@tomkinsrichard)

    jomsky

    If I follow you, you have replaced a library in the current cforms II plugin with a library from the former and now discontinued cforms plugin and the transmission of multipart/alternative now results in the cform being properly displayed visually in Windows Live Mail as a form?

    Exactly.

    My response was to jomsky who stated “I’m having the exact same problem. I’m not quite sure if this issue was caused by the new plugin or if it was already an issue of the original one. Can anyone confirm this?”

    Up until last week the old cforms showed correct html format in Windows Live Mail. Updating the plugin doesn’t display the html format correctly in WLM.

    I have been using the old cforms for fours year, until I realised someone has been injecting code to the header, and I assumed via the old cforms ajax. And this has happened on two sites that are both using the old cforms plugin.

    Thread Starter tomkinsrichard

    (@tomkinsrichard)

    I’m rebuilding a website that used the old cforms.
    The site owner did not maintain their security. By the time I got all the code, every single PHP file on the site was infected with a giant chunk of obscure viral code, rendering everything useless for the move.
    I loaded the SQL into a database and I am extracting posts, pages and more from the SQL to rebuild.

    To the current maintainer of cforms II, I will gladly make a donation to the cause if you would kindly fix this problem with multipart/alternative failure in Windows Live Mail.

    Thread Starter tomkinsrichard

    (@tomkinsrichard)

    Will you be fixing/repairing this problem?

    Plugin Author bgermann

    (@bgermann)

    I will fix it as soon as I have the time.

Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘Admin email does not visually appear to be HTML’ is closed to new replies.