Email Error

Liz-Otaku
New Member
1 0 0

I have imported customers into my Shopify store. However, some of them the payment details are not in the system. So I need to send them an email asking them to update their card information. But, when I click to send the email, I get an error. It says "Form is invalid". I have checked the code, and tested the email (got the test email) so I am completely confused here. 

 

The code for the email is: 

 

{% capture email_title %}Confirm your payment information{% endcapture %}
{% capture email_greeting %}Hi {{display_name}},{% endcapture %}
{% capture email_body %}
  To keep your orders from {{ shop.name }} active, confirm your payment information.
{% endcapture %}

<!DOCTYPE html>
<html lang="en">
  <head>
  <title>{{ email_title }}</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="viewport" content="width=device-width">
  <link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
  <style>
    .button__cell { background: {{ shop.email_accent_color }}; }
    a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
  </style>
</head>

  <body>
    <table class="body">
      <tr>
        <td>
          <table class="header row">
  <tr>
    <td class="header__cell">
      <center>

        <table class="container">
          <tr>
            <td>

              <table class="row">
                <tr>
                  <td class="shop-name__cell">
                    {%- if shop.email_logo_url %}
                      <img src="{{shop.email_logo_url}}" alt="{{ shop.name }}" width="{{ shop.email_logo_width }}">
                    {%- else %}
                      <h1 class="shop-name__text">
                        <a href="{{shop.url}}">{{ shop.name }}</a>
                      </h1>
                    {%- endif %}
                  </td>

                </tr>
              </table>

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

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

          <table class="row content">
  <tr>
    <td class="content__cell">
      <center>
        <table class="container">
          <tr>
            <td>
              
            <h2>{{ email_title }}</h2>
            <p>{{ email_greeting }}</p>
            <p>{{ email_body }}</p>
            <table class="row actions">
              <tr>
                <td class="empty-line"> </td>
              </tr>
              <tr>
                <td class="actions__cell">
                  <table class="button main-action-cell">
                    <tr>
                      <td class="button__cell"><a href="{{ email_confirmation_url }}" class="button__text">Confirm payment information</a></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>

            </td>
          </tr>
        </table>
      </center>
    </td>
  </tr>
</table>
          <table class="row footer">
  <tr>
    <td class="footer__cell">
      <center>
        <table class="container">
          <tr>
            <td>
              
              <p class="disclaimer__subtext">If you have any questions, reply to this email or contact us at <a href="mailto:{{ shop.email }}">{{ shop.email }}</a></p>
            </td>
          </tr>
        </table>
      </center>
    </td>
  </tr>
</table>

<img src="{{ 'notifications/spacer.png' | shopify_asset_url }}" class="spacer" height="1" />

        </td>
      </tr>
    </table>
  </body>
</html>

 

 

Any help, would be appreciated!

 

0 Likes