Email template issue


(Justin Veenema) #1

I have question about something I’m seeing recently. I’ve decided to test how other users receive email from Discourse… and I’m a little confused.

Both of the screenshots below were delivered to the same email address. One was from Feverbee (and has styling, pictures, links) and the other is from Unbounce (with no styling). Both are replies/mentions on a thread. You can see there’s a pretty stark diference.

Why is our Community sending out unformatted emails? :frowning:


(Jeff Atwood) #2

That looks like GMail pulling some “sub-reply” formatting tricks to me. I get tons of mail from Discourse instances and they are always formatted.


(Joshua Rosenfeld) #3

@Justin_Veenema mind if I sign up on Unbounce to do some testing?


(Justin Veenema) #4

@jomaxro yes! Please do. :slight_smile:


(Justin Veenema) #5

Yeah, it’s definitely strange @codinghorror… but I really don’t think it’s a gmail issue. I noticed the same unformatted email in iOS as well.

For the sake of completely testing, I had the same post sent off to two different accounts using different methods (mailing_list and user_mentioned).

Then I went into gmail and downloaded the original raw text for each email that was sent from the Discourse servers.

You can see a very clear difference in the formatting between them:

  • The mailing_list email has divs, colours, images and the “We hate spam just as much as you do” footer text
  • The user_mentioned email just has plain text

You can find a dump of the raw-text from each email below.

user_mentioned
Delivered-To: justin@pixelpaws.ca
Received: by 10.12.149.80 with SMTP id m16csp1161816qvm;
        Wed, 23 Aug 2017 12:21:04 -0700 (PDT)
X-Received: by 10.99.112.30 with SMTP id l30mr3818311pgc.117.1503516064129;
        Wed, 23 Aug 2017 12:21:04 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1503516064; cv=none;
        d=google.com; s=arc-20160816;
        b=bmvYhwuRoDYNHOkwlz3oaaW4QOWFji7CEFhUcLUe44bQxXbJkZPrNtwm5mrqkNLGta
         WisEV7ubssuk88WdcyGWYf3v3j0pJLIJdGxPwYNohLBaWGsnozNMzyIaz/y82P3MLAPf
         bvfUcE3yXb+WB3a5c8cvzz01WkmS8AhTxW2PSjDnaq/062bUxkObanerS5je4KQC2NjM
         CZG20yWPc0fij/8TIdw9UQVJJY1pciMcEcK21MbKUGfrGGwWvnW3q1FqbxbnZ6/ppzik
         3LEDwIREH6xHhCVfzvyV1tR+dy333jygqTgCkHfBoL3LGV6kU656Kl40D1WTW4/pvTAq
         i/Lw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-archive:list-id:precedence:auto-submitted:list-unsubscribe
         :content-transfer-encoding:mime-version:subject:references
         :in-reply-to:message-id:to:reply-to:from:date:dkim-signature
         :arc-authentication-results;
        bh=K96NtGnHqxrVwWpVH/edzgWv14mXQKbkFDoTI1wTvts=;
        b=hQyGanvwjSi19Q0827sxofOfv2tXmAVB5RsZ8BSYQeoRi+HHzmiwBKFDGl62QCDMEu
         1EBxu9stDs1LYvY5Jqi1z0Gu49aF+T58IkTaTJ/f6szTRk0/mWkQPDmBdinlT/4t2b+b
         kxRgfIPkowcIJNNkBBQlMmWlwoEOqG+L8tpU4vMzHUdcfb6sYEeECDYcPVqpci2DN0kV
         rNxdpb6hAMGzBlgrC5F/WrCDSWBDDpVicFhaTLUNUMBx/MAj2OMLXQR0ZsrBOkX3RGoe
         FkI8q0n2nzMG3Xm8EEjwgTt7a+D5x4YGupVtSslytKJDVr8fEXBkUUukyhgWf9xDOHov
         E0bA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@discoursemail.com header.s=sjc1 header.b=N8QOp5MQ;
       spf=pass (google.com: domain of unbounce+verp-37b4a0890e1fcf530321bf6fde257518@discoursemail.com designates 64.71.168.242 as permitted sender) smtp.mailfrom=unbounce+verp-37b4a0890e1fcf530321bf6fde257518@discoursemail.com;
       dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=discoursemail.com
Return-Path: <unbounce+verp-37b4a0890e1fcf530321bf6fde257518@discoursemail.com>
Received: from mx-out-04c.sjc1.discourse.org (mx-out-04c.sjc1.discourse.org. [64.71.168.242])
        by mx.google.com with ESMTPS id d10si1444167pgc.740.2017.08.23.12.21.03
        for <justin@pixelpaws.ca>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 23 Aug 2017 12:21:04 -0700 (PDT)
Received-SPF: pass (google.com: domain of unbounce+verp-37b4a0890e1fcf530321bf6fde257518@discoursemail.com designates 64.71.168.242 as permitted sender) client-ip=64.71.168.242;
Authentication-Results: mx.google.com;
       dkim=pass header.i=@discoursemail.com header.s=sjc1 header.b=N8QOp5MQ;
       spf=pass (google.com: domain of unbounce+verp-37b4a0890e1fcf530321bf6fde257518@discoursemail.com designates 64.71.168.242 as permitted sender) smtp.mailfrom=unbounce+verp-37b4a0890e1fcf530321bf6fde257518@discoursemail.com;
       dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=discoursemail.com
Received: from localhost.localdomain (unknown [IPv6:2001:470:aa:6::29a:c8c:11c9]) by mx-out-04c.sjc1.discourse.org (Postfix) with ESMTP id A4FC04A01B7 for <justin@pixelpaws.ca>; Wed, 23 Aug 2017 19:21:03 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=discoursemail.com; s=sjc1; t=1503516063; bh=MDeDzrWuKegjm9pRBkXnLEYor+4GNIj736dpG4afIuI=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:
	 List-Unsubscribe:List-ID:List-Archive; b=N8QOp5MQkR4a3fto0SCb4uamlqK4hjqIoZ6Y/+IC81leYRU9rkXUt0KNhnpMvoM10
	 cBOKRFHhN01qNkYWkLUsAQ6rOcR4eP4DYTIiTMtsVJ5S3zB92oS9WcRkriPJduateJ
	 k1PwkD9o2Gse8Bo9NHwLyx84FEnVklSQ1JzdUhKHsufVGBqWLPe69Nnehz7xdMzw7S
	 ip/KLhBFwWch/Uk29rhRXaqwp7tUIzAT+iLBxJOJ/LavW7P28bDGDUPVjkzqDoyRdY
	 AOIsYOecZs45ur6Gop0/WBr3HyPQhE5xA2QT2UTHMgVIXlZ4HMnG87dIpssNLms3ir
	 Uv4orlWF6ME4Q==
Date: Wed, 23 Aug 2017 19:21:03 +0000
From: Justin Veenema <unbounce@discoursemail.com>
Reply-To: Unbounce Community <unbounce+7513a9a0312eedaef8f7817864c63511@discoursemail.com>
To: justin@pixelpaws.ca
Message-ID: <topic/6092/25243@community.unbounce.com>
In-Reply-To: <topic/6092@community.unbounce.com>
References: <topic/6092@community.unbounce.com>
Subject: [Unbounce Community] So many test posts
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_599dd59f9b46b_853faffba5d080851d"; charset=UTF-8
Content-Transfer-Encoding: 7bit
List-Unsubscribe: <http://community.unbounce.com/email/unsubscribe/e1f0f44bd660486f2d873990d41402110dd572932350846709145b088fab837f>
X-Auto-Response-Suppress: All
Auto-Submitted: auto-generated
Precedence: list
List-ID: <internal-drafts.community.unbounce.com>
List-Archive: http://community.unbounce.com/t/so-many-test-posts/6092

----==_mimepart_599dd59f9b46b_853faffba5d080851d
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit



But this is a post where I'm tagging someone:  @Justin_Veenema2





---
[Visit Topic](http://community.unbounce.com/t/so-many-test-posts/6092/8) or reply to this email to respond.

To unsubscribe from these emails, [click here](http://community.unbounce.com/email/unsubscribe/e1f0f44bd660486f2d873990d41402110dd572932350846709145b088fab837f).

----==_mimepart_599dd59f9b46b_853faffba5d080851d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p>But this is a post where I=E2=80=99m tagging someone:  <a href=3D"/u/jus=
tin_veenema2">@Justin_Veenema2</a></p>
<hr>
<p><a href=3D"http://community.unbounce.com/t/so-many-test-posts/6092/8">Vi=
sit Topic</a> or reply to this email to respond.</p>
<p>To unsubscribe from these emails, <a href=3D"http://community.unbounce.c=
om/email/unsubscribe/e1f0f44bd660486f2d873990d41402110dd572932350846709145b=
088fab837f">click here</a>.</p>
----==_mimepart_599dd59f9b46b_853faffba5d080851d--
mailing_list
Delivered-To: jveenema@unbounce.com
Received: by 10.74.175.74 with SMTP id x10csp7160146oon;
        Wed, 23 Aug 2017 12:21:04 -0700 (PDT)
X-Received: by 10.98.220.194 with SMTP id c63mr3959753pfl.114.1503516064047;
        Wed, 23 Aug 2017 12:21:04 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1503516064; cv=none;
        d=google.com; s=arc-20160816;
        b=qaK+9Q+JcJiQDiCUG3aTGpEzF2GrtJA5vcBSjoNOUgUPwHkkWcc54FqJoybzLYD5c0
         TVpLLZzxc/10ceYQOsUx6mvkvMNp4n9OLufhU3p9FgKWQEqX3Q2gckmf+UidGM+OLkGO
         k4PsWeras8PCEXd0H+bEjt5FVpSP9AmQhy+arq8P4rFpSLj8VmUGf2yxHLatNU20X6nl
         XUfe/vQC2MXTU79dV/3p8wieE0nPNhaL7uEY23s4PridIID3W/6LOHQleWPi+ESoOS04
         EkMJU/IcCCG2AbO/nccXD3bHl7VlZV207bOSFCubzUCVMbRcK4nNUxOYlzMXEmgmpAUx
         maHg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-archive:list-id:precedence:auto-submitted:list-unsubscribe
         :content-transfer-encoding:mime-version:subject:references
         :in-reply-to:message-id:to:reply-to:from:date:dkim-signature
         :arc-authentication-results;
        bh=pXFbLmqEcRKAmB0laLt5ZCEdgDADZmIAqVaSQTu8uc4=;
        b=CxXC2mnhexPwPv951RcI+4JDodaiKKceviX7UV0N0As588aPJyzBrPhSZR0B54dwA3
         pmTqLqYEkfroq2PoJRFmbnAit+/uB3xNv53PZoAikry8Ip0BJzWPjP6eCaLgQZ+c4EVo
         8KCerRmLmib+luvzeduv7IwCBtU8mxNGTUorRPy2JKfnqzP8kH0XWKaqhePbDz7HFXqz
         FWOZn8X0PPGF6bFFbio5mRbRxtTh4qURovZFucVgOg4HaEt9hEqD5g8FxwnIeJSrU5ZJ
         oPzNg0YVrGsEXRbGW5YXpwptW3ktgDq4STTE6YNLKc2WpD2ZAZwKfnU6VonJypIUMUKw
         yiEg==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@discoursemail.com header.s=sjc1 header.b=HD0a6dFx;
       spf=pass (google.com: domain of unbounce+verp-826fa981b5e9528cb8129b0f305106b5@discoursemail.com designates 64.71.168.242 as permitted sender) smtp.mailfrom=unbounce+verp-826fa981b5e9528cb8129b0f305106b5@discoursemail.com;
       dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=discoursemail.com
Return-Path: <unbounce+verp-826fa981b5e9528cb8129b0f305106b5@discoursemail.com>
Received: from mx-out-04c.sjc1.discourse.org (mx-out-04c.sjc1.discourse.org. [64.71.168.242])
        by mx.google.com with ESMTPS id g2si1474012pgu.655.2017.08.23.12.21.03
        for <jveenema@unbounce.com>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 23 Aug 2017 12:21:04 -0700 (PDT)
Received-SPF: pass (google.com: domain of unbounce+verp-826fa981b5e9528cb8129b0f305106b5@discoursemail.com designates 64.71.168.242 as permitted sender) client-ip=64.71.168.242;
Authentication-Results: mx.google.com;
       dkim=pass header.i=@discoursemail.com header.s=sjc1 header.b=HD0a6dFx;
       spf=pass (google.com: domain of unbounce+verp-826fa981b5e9528cb8129b0f305106b5@discoursemail.com designates 64.71.168.242 as permitted sender) smtp.mailfrom=unbounce+verp-826fa981b5e9528cb8129b0f305106b5@discoursemail.com;
       dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=discoursemail.com
Received: from localhost.localdomain (unknown [IPv6:2001:470:aa:8::237:628b:35df]) by mx-out-04c.sjc1.discourse.org (Postfix) with ESMTP id AC71A4A01EA for <jveenema@unbounce.com>; Wed, 23 Aug 2017 19:21:03 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=discoursemail.com; s=sjc1; t=1503516063; bh=+B+hXMJiPFcOgaoe4YPdynbE3pniFz2uhH9Te+C0Ezs=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:
	 List-Unsubscribe:List-ID:List-Archive; b=HD0a6dFxE6FvgYhtgGC6tXb+epuEEMKq7+HlyYoyO2eV3uvpUgWh1LarPmPpFjAom
	 ZJ6GMOw2NiJPn2GDHv+3sBqZr3pC/I5pgklknkI+E+m1lmxTVCDURY7XYSsrWATCkJ
	 vq7N2GapqvRMStUceeIP30aAN+Y5utnAI6Lt+D6IwxY5teK9YlWnjq60NpRTVLudk2
	 +p+vRtCIW4m9PUBuCmyp8GMyIR/+oKdqXyCYMQo7iP8AWVZUcCr9bWO+85a16Uptow
	 sEV6gNowhinMso/z4zWeV29YwOxTQqr0qRO4oxXyCzYghXV4bk9tFdUpYgrpLm5DYq
	 8E/dIYxISNoUQ==
Date: Wed, 23 Aug 2017 19:21:03 +0000
From: Justin Veenema <unbounce@discoursemail.com>
Reply-To: Unbounce Community <unbounce+8500f10c0d51c55bbc11c429dd5c748d@discoursemail.com>
To: jveenema@unbounce.com
Message-ID: <topic/6092/25243@community.unbounce.com>
In-Reply-To: <topic/6092@community.unbounce.com>
References: <topic/6092@community.unbounce.com>
Subject: [Unbounce Community] So many test posts
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_599dd59f9ab09_893fc54fdd2774373982"; charset=UTF-8
Content-Transfer-Encoding: 7bit
List-Unsubscribe: <http://community.unbounce.com/email/unsubscribe/2235ab6c7b3b7683c3a2d6db2b0f4dbba75b32b702816ff5c7c49d01b094a576>
X-Auto-Response-Suppress: All
Auto-Submitted: auto-generated
Precedence: list
List-ID: <internal-drafts.community.unbounce.com>
List-Archive: http://community.unbounce.com/t/so-many-test-posts/6092

----==_mimepart_599dd59f9ab09_893fc54fdd2774373982
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit



But this is a post where I'm tagging someone:  @Justin_Veenema2





---
[Visit Topic](http://community.unbounce.com/t/so-many-test-posts/6092/8) or reply to this email to respond.

You are receiving this because you're a member of the [Unbounce Community](http://community.unbounce.com/). 

We hate spam just as much as you do, so if you believe you're getting these by mistake and don't want to hear from the Community anymore, just [click here](http://community.unbounce.com/email/unsubscribe/2235ab6c7b3b7683c3a2d6db2b0f4dbba75b32b702816ff5c7c49d01b094a576) to unsubscribe. No hard feelings!

----==_mimepart_599dd59f9ab09_893fc54fdd2774373982
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div>

  <div></div>

    <div style=3D"margin-bottom:25px;">
  <table cellspacing=3D"0" cellpadding=3D"0" border=3D"0">
    <tr>
      <td style=3D"vertical-align:top;width:55px;">
        <img src=3D"https://cdn-business.discourse.org/user_avatar/communit=
y.unbounce.com/justin/45/1027_1.png" title=3D"Justin" width=3D"45" height=
=3D"45">
      </td>
      <td>
        <a href=3D"http://community.unbounce.com/u/justin" target=3D"_blank=
" style=3D"text-decoration: none; font-weight: bold; color: #006699;; font-=
size:13px;font-family:'lucida grande',tahoma,verdana,arial,sans-serif;color=
:#3b5998;text-decoration:none;font-weight:bold">Justin</a>
          <span style=3D"font-size:13px;font-family:'lucida grande',tahoma,=
verdana,arial,sans-serif;text-decoration:none;margin-left:7px;color: #999;"=
>Manager, Online Community Team</span>
        <br>
        <span style=3D"text-align:right;color:#999999;padding-right:5px;fon=
t-family:'lucida grande',tahoma,verdana,arial,sans-serif;font-size:11px">Au=
gust 23</span>
      </td>
    </tr>
  </table>
  <div style=3D"padding-top:5px;"><p style=3D"margin-top:0; border: 0;">But=
 this is a post where I=E2=80=99m tagging someone:  <a href=3D"http://commu=
nity.unbounce.com/u/justin_veenema2" style=3D"text-decoration: none; font-w=
eight: bold; color: #006699;">@Justin_Veenema2</a></p></div>
</div>






  <div style=3D"color:#666;">
<hr style=3D"background-color: #ddd; height: 1px; border: 1px;; background-=
color: #ddd; height: 1px; border: 1px;">
<p><a href=3D"http://community.unbounce.com/t/so-many-test-posts/6092/8" st=
yle=3D"text-decoration: none; font-weight: bold; color: #006699;; backgroun=
d-color: #006699; color:#ffffff; border-top: 4px solid #006699; border-righ=
t: 6px solid #006699; border-bottom: 4px solid #006699; border-left: 6px so=
lid #006699; display: inline-block;">Visit Topic</a> or reply to this email=
 to respond.</p>
</div>
  <div style=3D"color:#666;">
<p>You are receiving this because you=E2=80=99re a member of the <a href=3D=
"http://community.unbounce.com/" style=3D"text-decoration: none; font-weigh=
t: bold; color: #006699;; color:#666;">Unbounce Community</a>.</p>
<p>We hate spam just as much as you do, so if you believe you=E2=80=99re ge=
tting these by mistake and don=E2=80=99t want to hear from the Community an=
ymore, just <a href=3D"http://community.unbounce.com/email/unsubscribe/2235=
ab6c7b3b7683c3a2d6db2b0f4dbba75b32b702816ff5c7c49d01b094a576" style=3D"text=
-decoration: none; font-weight: bold; color: #006699;; color:#666;">click h=
ere</a> to unsubscribe. No hard feelings!</p>
</div>

</div>

<div itemscope itemtype=3D"http://schema.org/EmailMessage" style=3D"display=
:none">
  <div itemprop=3D"action" itemscope itemtype=3D"http://schema.org/ViewActi=
on">
    <link itemprop=3D"url" href=3D"http://community.unbounce.com/t/so-many-=
test-posts/6092/8">
    <meta itemprop=3D"name" content=3D"Read full topic">
  </div>
</div>

----==_mimepart_599dd59f9ab09_893fc54fdd2774373982--

Please let me know if there’s anything else you need here. Thank you! :slight_smile:


(Jeff Atwood) #6

Did you override any email text in Admin, Customize?


(Justin Veenema) #7

We had originally, yes. But we weren’t aware it would remove all of the traditional formatting.

After realizing that customizing the text essentially breaks the formatting, we reverted it back to default – but we’re still seeing the issue.


(Jeff Atwood) #8

Just brainstorming, we aren’t seeing this anywhere else, so it’s hard to say. There’s something different in your case.


(Joshua Rosenfeld) #9

Took a look. I’m getting properly styled emails. Are other users on your site able to reproduce this, or are you the only one with the issue?

image


(Justin Veenema) #10

Suuuuper strange. I’ll try with some other accounts and see what I find. I’ll keep you updated.

Thanks so much for looking into this for us!


(Richard Millington) #11

You just don’t have our crazy skills dude :smiley: