splashblot / dronedb

Location Intelligence & Data Visualization tool
http://carto.com
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Update email templates and invitation flow #45

Closed jjmata closed 7 years ago

jjmata commented 7 years ago

This work is already started, so opening an issue to track it.

I deployed the tileo-rebrand/email-templates branch to production and saw the following:

screenshot 2017-07-12 00 11 36

So three things I can spot on this one email (haven't tested the others):

jjmata commented 7 years ago

Email source, not that it helps too much:

Delivered-To: jjmata@tileo.co
Received: by 10.74.102.219 with SMTP id j88csp468098ooe;
        Wed, 12 Jul 2017 00:09:35 -0700 (PDT)
X-Received: by 10.55.100.67 with SMTP id y64mr4249987qkb.246.1499843375566;
        Wed, 12 Jul 2017 00:09:35 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1499843375; cv=none;
        d=google.com; s=arc-20160816;
        b=MwhJivLiRX0Y59Eo7vPwasn8tfXwx1LO6lqcEZKL7RIIgmTxXfIgCK9k9ty4vIg8kL
         lSr9JAVALKujKWKStfv9wIGbC9Uio5L8tWOWyq4gtfh9i/vwBi7OWbOQuxw0AyM2dGiO
         8TPAX3txm4avVWr3LSff05HZhPpCyDCHJ9GPN0vjz5RhmdF47l0Tag2dnvndtyYp2KQc
         18rYDaZuZCZuc/u9j5oeLc3K6wGli1osGDjsiebejxqb5Dx/JpDknZBO5CICOBAnkNRu
         36XnWkLqjdkIXKaf6YL14Jqg4uKoBvMjtAHoyn/sfw4To5yYxui+RuLrZcww9PMHbKtX
         EaYw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:subject:message-id:to:from
         :date:sender:domainkey-signature:dkim-signature
         :arc-authentication-results;
        bh=qOnCWrnMevUv8qiCQEashcRx/yLtWE028U9iJq5aY9E=;
        b=J/R3MBwUHQPuKkTWQWkN4yVAKggFP3/m9G/R60j5ECd4/K2ebCHB63dwMMb7Bpdr65
         c6S802sOToAPRYUknRNWlSpexrWXsmGKlz3qhIVVtASH9dMbTA7B7ge1ZpSy4Iz7PEXJ
         1ajV5SL7oEros4PqEfKXSBm3J5aCeijoey9vmIj1dpWlbrWb79V5uuSX5RpzuZb+AKVY
         sVLLRPx8WYjM62Ql5BFpoKVOPMqIdHmb3nPa/6wSD5Kr6noUcl/YzvXIHnRZcokvysEH
         iYedXtSrev3W7IJXnbrzvI6Ywg5v/4+H2FpsmJNQM92+8nkJWh+IooqH+T0Oe51fLjoO
         18hg==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@beta.tileo.co header.b=vf5MZ3Wl;
       spf=pass (google.com: domain of bounce+3cb4ac.d93cc5-jjmata=tileo.co@beta.tileo.co designates 184.173.153.199 as permitted sender) smtp.mailfrom=bounce+3cb4ac.d93cc5-jjmata=tileo.co@beta.tileo.co
Return-Path: <bounce+3cb4ac.d93cc5-jjmata=tileo.co@beta.tileo.co>
Received: from mail-s71.mailgun.info (mail-s71.mailgun.info. [184.173.153.199])
        by mx.google.com with UTF8SMTPS id l2si1529708qkd.274.2017.07.12.00.09.35
        for <jjmata@tileo.co>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 12 Jul 2017 00:09:35 -0700 (PDT)
Received-SPF: pass (google.com: domain of bounce+3cb4ac.d93cc5-jjmata=tileo.co@beta.tileo.co designates 184.173.153.199 as permitted sender) client-ip=184.173.153.199;
Authentication-Results: mx.google.com;
       dkim=pass header.i=@beta.tileo.co header.b=vf5MZ3Wl;
       spf=pass (google.com: domain of bounce+3cb4ac.d93cc5-jjmata=tileo.co@beta.tileo.co designates 184.173.153.199 as permitted sender) smtp.mailfrom=bounce+3cb4ac.d93cc5-jjmata=tileo.co@beta.tileo.co
DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=beta.tileo.co; q=dns/txt;
 s=smtp; t=1499843375; h=Content-Transfer-Encoding: Content-Type:
 Mime-Version: Subject: Message-ID: To: From: Date: Sender;
 bh=qOnCWrnMevUv8qiCQEashcRx/yLtWE028U9iJq5aY9E=; b=vf5MZ3WlkLM694//WQfjn8IwsyC09ooqbUwabKFwK0XCoiUK04pg454NNptWlNhzOClIy9or
 B/w2DpZsaQZEyb7Ymzz4VlGdjji7W3ySYTvOSvR//HfzyynCGclSG1kJ73JFpNEcq7JkzeQY
 sx7K6KNbGvHK7crxPX8Q8UvdkLM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=beta.tileo.co; s=smtp;
 q=dns; h=Sender: Date: From: To: Message-ID: Subject: Mime-Version:
 Content-Type: Content-Transfer-Encoding;
 b=OzAQ1XQa7tPfT7JQU6w98mYH2dnx8B6b+my6a6E33NfExBPK0EQYY+jGkcy0HFwi6jdFH5
 CVx6sI+ng2qPEzwG3P0ZqoSt1ZZEnmmcuwzvLIU/O8Nb+ITHKsnKp+LiygKQK7oUB0Vou9uM
 EgLqbWa8n80K9d+CxngVL6k3acoxE=
Sender: support=tileo.co@beta.tileo.co
X-Mailgun-Sending-Ip: 184.173.153.199
X-Mailgun-Sid: WyI4NDc5OSIsICJqam1hdGFAdGlsZW8uY28iLCAiZDkzY2M1Il0=
Received: from localhost.localdomain (3.bc.32a9.ip4.static.sl-reverse.com [169.50.188.3])
 by mxa.mailgun.org with ESMTP id 5965cb2d.7fbe9811b030-smtp-out-n03;
 Wed, 12 Jul 2017 07:09:33 -0000 (UTC)
Date: Wed, 12 Jul 2017 07:09:32 +0000
From: Tileo Support <support@tileo.co>
To: jjmata@tileo.co
Message-ID: <5965cb2cccfcb_2be975599020995@023291837d86.mail>
Subject: You are invited to join the smartrural organization at CARTO
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html lang=3D"en">
<head>
  <title>You are invited to join the smartrural organization at CARTO </t=
itle>
  <!--

    SALTED | A RESPONSIVE EMAIL TEMPLATE
    =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

    Based on code used and tested by Litmus (@litmusapp)
    Originally developed by Kevin Mandeville (@KEVINgotbounce)
    Cleaned up by Jason Rodriguez (@rodriguezcommaj)
    Presented by A List Apart (@alistapart)

    Email is surprisingly hard. While this has been thoroughly tested, yo=
ur mileage may vary.
    It's highly recommended that you test using a service like Litmus and=
 your own devices.

    Enjoy!

   -->
  <meta charset=3D"utf-8">
  <meta name=3D"viewport" content=3D"width=3Ddevice-width">
  <style type=3D"text/css">
    /* CLIENT-SPECIFIC STYLES */
    #outlook a{padding:0;} /* Force Outlook to provide a "view in browser=
" message */
    .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmai=
l to display emails at full width */
    .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass=
 font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Forc=
e Hotmail to display normal line spacing */
    body, table, td, a{-webkit-text-size-adjust:100%; -ms-text-size-adjus=
t:100%;} /* Prevent WebKit and Windows mobile changing default text sizes=
 */
    table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spac=
ing between tables in Outlook 2007 and up */
    img{-ms-interpolation-mode:bicubic;} /* Allow smoother rendering of r=
esized image in Internet Explorer */

    /* RESET STYLES */
    body{margin:0; padding:0;}
    img{border:0; height:auto; line-height:100%; outline:none; text-decor=
ation:none;}
    table{border-collapse:collapse !important;}
    body{height:100% !important; margin:0; padding:0; width:100% !importa=
nt;}

    /* iOS BLUE LINKS */
    .appleBody a {color:#68440a; text-decoration: none;}
    .appleFooter a {color:#999999; text-decoration: none;}

    /* MOBILE STYLES */
    @media screen and (max-width: 525px) {

      /* ADJUSTS LAYOUT OF LOGO IMAGE */
      td[class=3D"logo"]{
        text-align: left;
        padding: 20px 0 20px 0 !important;
      }

      td[class=3D"logo"] img{
        margin:0 auto!important;
      }

      /* FULL-WIDTH TABLES */
      table[class=3D"responsive-table"]{
        width:100%!important;
      }
    }
  </style>
</head>

<body style=3D"margin: 0; padding: 0;">

  <table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"100%">=

  <tr>
    <td bgcolor=3D"#ffffff">
      <div align=3D"center" style=3D"padding: 0px 15px 0px 15px;">
        <table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"=
100%" style=3D"max-width: 620px; width: 100% !important;">
          <tr>
            <td style=3D"padding: 20px 0px 65px 0px;" class=3D"logo">
              <table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" wid=
th=3D"100%">
                <tr>
                  <td bgcolor=3D"#ffffff" width=3D"40" align=3D"left"><im=
g alt=3D"Logo" src=3D"http://http://tileo-mailing-assets.s3.amazonaws.com=
/tileo-logo.png" width=3D"82" height=3D"32" style=3D"display: block;" bor=
der=3D"0"></td>
                  <td bgcolor=3D"#ffffff" width=3D"560" align=3D"right">
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </div>
    </td>
  </tr>

</table>

  <!-- MESSAGE CONTENT -->
  <table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"100%">=

    <tr>
      <td bgcolor=3D"#ffffff" align=3D"center" style=3D"padding: 0px 15px=
 72px 15px;">
        <table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"=
100%" style=3D"max-width: 620px; width: 100% !important;">
          <tr>
            <td>
              <table width=3D"100%" border=3D"0" cellspacing=3D"0" cellpa=
dding=3D"0" style=3D"background-color: #ffffff; border-collapse: separate=
 !important; width: 100% !important;">

                <tr>
  <td align=3D"left" style=3D"padding-bottom: 32px;">
    <p style=3D"margin: 0; padding: 0; font-weight: bold; text-transform:=
 uppercase; font-size: 22px; font-family: 'Montserrat', Helvetica, Arial,=
 sans-serif; color: #2E3C43;">You are invited to join the smartrural orga=
nization at CARTO </p>
  </td>
</tr>

                <tr>
  <td align=3D"left" style=3D"font-size: 14px; line-height: 25px; font-fa=
mily: 'Open Sans', Helvetica, Arial, sans-serif; color: #647083;">
    <p>=C2=A1Hola y bienvenido/a!</p>
    <p>=C3=9Anete a la organizaci=C3=B3n smartrural en Tileo. Es tan senc=
illo como <a href=3D"https://smartrural.tileo.co/user/smartrural/signup?e=
mail=3Djjmata%40tileo.co&amp;invitation_token=3Dbe69172f0b48ff2d7a0d9426b=
c9c6edcd56c40f5" target=3D"_blank" style=3D"color: #1785FB">crear tu cuen=
ta</a>.</p>

    <p>Aqu=C3=AD tienes un mensaje personalizado por el/la administrador/=
a de la organizaci=C3=B3n:</p>
  </td>

</tr>

<tr>
  <td align=3D"left" style=3D"font-size: 14px; line-height: 25px; font-fa=
mily: 'Open Sans', Helvetica, Arial, sans-serif; color: #647083;">
    <p><i><p>I'd like to invite you to my CARTO organization,
<br />Best regards</p></i></p>
  </td>
</tr>

<tr>
  <td align=3D"left" style=3D"font-size: 14px; line-height: 25px; font-fa=
mily: 'Open Sans', Helvetica, Arial, sans-serif; color: #647083;">
    <p>=C2=A1Hasta pronto!</p>
  </td>

</tr>

              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>

  <table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"100%">=

  <tr>
    <td bgcolor=3D"#f9f9f9" align=3D"center">
      <table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"10=
0%" align=3D"center" style=3D"max-width: 620px; width: 100% !important;">=

        <tr>
          <td style=3D"padding: 64px 15px 64px 15px;">
            <table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=
=3D"100%">
              <tr>
                <td align=3D"left" valign=3D"middle" style=3D"font-size: =
13px; line-height: 20px; font-family: 'Open Sans', Helvetica, Arial, sans=
-serif; color: #979EA1;">
                  =C2=A9 2017 Tileo, Inc.
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>

</table>

</body>
</html>
MariaCheca commented 7 years ago

The invitation link to login is broken due to conflicts with the subdomains configuration. We must fix that first in order to generate the proper urls.

jjmata commented 7 years ago

I see you checked most of the boxes above, @MariaCheca (this is all in https://github.com/splashblot/dronedb/commit/a178196a39350e05c957a5df95a4411a98157db2 right?)

Let's go ahead and deploy those yourself at smartrural.tileo.co and take the invite link out for now! 💪

jjmata commented 7 years ago

I hear this got deployed today, update please @MariaCheca?

MariaCheca commented 7 years ago

Yes! Closing Issue.

jjmata commented 7 years ago

Did the last task in the list get addressed as well? I think we decided to remove the invitation flow for now until we have deployed in subdomain mode, right?

If not just rename this issue and open a new one to track the remaining bits.

MariaCheca commented 7 years ago

Yes, I hid the button to invite users until the feature flow is restored again :)

jjmata commented 7 years ago

OK, I saw that in today's deploy! 👍

Can you split that part (the invitation flow that requires subdomains) out into a new issue then, @MariaCheca?