<p>Hello,</p>

<% if test.success? %>
  <p>An alert was issued for incoming data from the ODK Aggregate server
  <strong><%= form.server.name %></strong> at
  <%= link_to form.server.url, form.server.url %>. A submission for the form
  <strong><%= form.name %></strong> triggered an alert with this message:</p>

  <blockquote><%= alert.message %></blockquote>
<% else %>
  <p>An alert issued an error for incoming data from the ODK Aggregate server
  <strong><%= form.server.name %></strong> at
  <%= link_to form.server.url, form.server.url %>. A submission for the form
  <strong><%= form.name %></strong> could not be processed for the following
  reason:</p>

  <blockquote><%= test.error %></blockquote>
<% end %>

<%= link_to 'View Your Integrations', integrations_url(url_options) %>

<p>Hello,</p>

<% if test.success? %>
  <p>An alert was issued for incoming data from the ODK Aggregate server
  <strong><%= form.server.name %></strong> at
  <%= link_to form.server.url, form.server.url %>. A submission for the form
  <strong><%= form.name %></strong> triggered an alert with this message:</p>

  <blockquote><%= alert.message %></blockquote>
<% else %>
  <p>An alert issued an error for incoming data from the ODK Aggregate server
  <strong><%= form.server.name %></strong> at
  <%= link_to form.server.url, form.server.url %>. A submission for the form
  <strong><%= form.name %></strong> could not be processed for the following
  reason:</p>

  <blockquote><%= test.error %></blockquote>
<% end %>

<%= link_to 'View Your Integrations', integrations_url(url_options) %>

<% if Rails.env.development? %>
  <p style="display: none"><%= Time.now %></p>
<% end %>

Add hidden timestamp to emails sent locally
Add hidden timestamp to emails sent locally

Gmail seems to block duplicate emails sent within the same few minutes.
Adding a timestamp uniquifies the emails.
