ThinkUpLLC / ThinkUp

ThinkUp gives you insights into your social networking activity on Twitter, Facebook, Instagram, and beyond.
http://thinkup.com
GNU General Public License v3.0
3.3k stars 676 forks source link

HTML email displaying markup #1527

Closed artwells closed 6 months ago

artwells commented 11 years ago

I mistakenly set up the cron for crawler/crawl.php through a user without write permissions on the data folder and received the helpful email, subject "Please re-authorize ThinkUp to access Art Wells on Facebook". The email was received unrendered markup.

The mail client was Gmail on Chrome 25.0.1364.152 Below is a copy of the email with some data replaced by XXXXX's

Delivered-To: artwells@artwells.com
Received: by XXXXXXXXXXXX with SMTP id XXXXXXXXXXXXX;
        Tue, 2 Apr 2013 17:38:15 -0700 (PDT)
X-Received: by XXXXXXXXXXX with SMTP id XXXXXXXXXXXXX;
        Tue, 02 Apr 2013 17:38:14 -0700 (PDT)
Return-Path: <artwells@XXXXXXXXXXXXXXXXXXXXX>
Received: XXXXXXXXXXXXXXXXX
Received-SPF: pass (XXXXXXXXXXXXXXXXXXXXXXXX)

Authentication-Results:XXXXXXXXXXXXXXXXXXXXXXXXX
Received: by XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
To: artwells@artwells.com
Subject: Please re-authorize ThinkUp to access Art Wells on Facebook
X-PHP-Originating-Script: 1000:class.Mailer.php
From: "ThinkUp" <notifications@>
X-Mailer: PHP/5.3.5-1ubuntu7.11
Message-Id: <XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX>
Date: Tue,  2 Apr 2013 17:38:13 -0700 (PDT)

<!DOCTYPE html>

<html lang="en">

<head>
<meta charset="utf-8">
<title>ThinkUp</title>
<link rel="shortcut icon" type="image/x-icon"
    href="/assets/img/favicon.ico">
<!-- jquery -->
<link type="text/css" rel="stylesheet"
    href="//ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css">
<script type="text/javascript"
    src="//ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript"
    src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<!-- custom css -->
<link type="text/css" rel="stylesheet"
    href="/assets/css/base.css">
<link type="text/css" rel="stylesheet"
    href="/assets/css/positioning.css">
<link type="text/css" rel="stylesheet"
    href="/assets/css/style.css">
<link type="text/css" rel="stylesheet"
    href="/assets/css/installer.css">
</head>

<body>

<div id="status-bar" class="clearfix">

<div class="status-bar-left"><!-- the user has not selected an instance -->
</div>
<!-- end .status-bar-left -->

<div class="status-bar-right">
<ul>
    <li>&nbsp;</li>
</ul>
</div>
<!-- end .status-bar-right --></div>
<!-- end #status-bar -->

<div class="container clearfix">

<div id="app-title"><a href="/index.php">
<h1><span id="headerthink">Think</span><span id="headerup">Up</span></h1>
</a></div>
<!-- end #app-title -->

<!-- end .container -->
<div class="container_24 thinkup-canvas clearfix">
<div class="grid_22 prefix_1 alpha omega prepend_20 append_20 clearfix">
<div class="alert urgent"
    style="margin: 20px 0px; padding: 0.5em 0.7em;">
<p><span class="ui-icon ui-icon-alert"
    style="float: left; margin: .3em 0.3em 0 0;"></span> <b>Oops!</b> ThinkUp is unable
to run because of incorrect folder permissions.<br /><br />
To fix this problem, run<br />
<code>sudo chown -R XXXXXXXXXXXX /XXXXXXXXXXXXXXXXX/thinkup/data/</code><br />
on your server, using root (or sudo), and then reload this page to continue.<br /><br />
If you don't have root access, use the following command instead:<br />
<code>chmod -R 777 /XXXXXXXXXXXXXXX/thinkup/data/</code><br />
</p>
</div>
</div>
</div>

<!-- .content -->

</body>

</html>
ginatrapani commented 11 years ago

Looks like your folder permissions aren't set up correctly, otherwise the body would be in plain text.