为什么我没有收到通过我为Shopify创建的自定义联系表发送的所有电子邮件?

问题描述

我已经创建了一个自定义联系表单,以使客户按照其创建自定义表单的教程,从我们的Shopify网站请求报价。在大多数情况下,它似乎可以正常工作,但是当我们发送测试电子邮件时,有时我们只收到收件箱中发送的一两个邮件(它们也不在“垃圾邮件”或“垃圾邮件文件夹中)。我们正在使用一个链接到Gmail并通过SPF检查的自定义域。我已经尝试将Shopify的所有电子邮件地址列入白名单。

很显然,我们不想让客户的请求丢在以太之间来疏远客户,所以我试图找出解决方法。非常感谢您提供的任何帮助!

{% form 'contact' %} {% if form.posted_successfully? %}
<script>
  window.location = "/pages/thank-you-for-contacting-us";
</script>


{% endif %} {{ form.errors | default_errors }}

<label for="ContactFormName">{{ 'contact.form.name' | t }} *</label>
<input type="text" id="ContactFormName" placeholder="First Last" name="contact[name]" value="{% if form[name] %}{{ form[name] }}{% elsif customer %}{{ customer.name }}{% endif %}" required/>



<!--Company @R_54_4045@ion fields-->
<label for="Company">Company *</label>
  <input type="text" id="Company" name="contact[Company]" required/>
<label for="Title">Title *</label>
  <input type="text" id="Title" name="contact[Title]" required/>
<label for="Department">Department</label>
  <input type="text" id="Department" name="contact[Department]" />

<!--Address Fields-->
<label for="Address">Address</label>
  <input type="text" id="Address" name="contact[AddressLine1]" />
  <input type="text" id="Address" name="contact[AddressLine2]" />
<div class="o-layout">
  <div class="o-layout__item u-1/1 u-1/3@tab">
    <label for="City">City</label>
    <input type="text" id="City" name="contact[City]" />
  </div>
  <div class="o-layout__item u-1/1 u-1/3@tab">
    <label for="Country">Country</label>
    <input type="text" id="Country" name="contact[Country]" />
  </div>
  <div class="o-layout__item u-1/1 u-1/3@tab">
    <label for="ZipCode">Zip Or Mail Code</label>
    <input type="text" id="ZipCode" name="contact[ZipCode]" />
  </div>
</div>

<!--Contact @R_54_4045@ion-->
<label for="Email" class="hidden-label">{{ 'contact.form.email' | t }} *</label>
  <input type="email" name="contact[email]" id="Email" class="{% if form.errors contains 'email' %} error{% endif %}" {% if form.email %} value="{{ form.email }}" {% endif %} autocorrect="off" autocapitalize="off" required/>
<label for="Phone">{{ 'contact.form.phone' | t }}</label>
  <input type="tel" id="Phone" name="contact[phone]" pattern="[0-9\-\(\)\ ]*" value="{% if form[phone] %}{{ form[phone] }}{% elsif customer %}{{ customer.phone }}{% endif %}">
<label for="Website">Company Website</label>
  <input type="text" id="Website" name="contact[Website]" />

<!-- Questions About the Company-->
<div class="o-layout" style="padding: 10px 0 20px 0;">
  <div class="o-layout__item u-1/1 u-1/2@tab">
    <label for="InHouseDesigners">Does your company have in house designers to edit artwork as needed? *</label>
  </div>
  <div class="o-layout__item u-1/1 u-1/2@tab" style="vertical-align: bottom">
    &emsp;<input type="radio" id="InHouseDesignersYes" name="contact[InHouseDesigners]" value="Yes" required/>&nbsp;&nbsp;Yes &emsp;
    <input type="radio" id="InHouseDesignersNo" name="contact[InHouseDesigners]" value="No" required/>&nbsp;&nbsp;No <br />
  </div>
</div>

<label for="Programs">What program(s) does the company use to edit artwork? *</label>
  <input type="text" id="Programs" name="contact[Programs]" required/>

<!--Project @R_54_4045@ion-->
<h2 class="plumager_subheading" style="text-align: center; padding-top: 15px;">Project @R_54_4045@ion</h2>

<label for="ProjectTitle">Project Title *</label>
  <input type="text" id="ProjectTitle" name="contact[ProjectTitle]" required/>
<label for="ProjectManager">Project Manager (if different from Contact)</label>
  <input type="text" name="contact[ProjectManager]" id="ProjectManager" {% if form.first_name %}value="{{ form.first_name }}" {% endif %} autocapitalize="words" autofocus/>

<label for="PM_Title">Title</label>
  <input type="text" id="PM_Title" name="contact[PMTitle]" />
<label for="PM_Department">Department</label>
  <input type="text" id="PM_Department" name="contact[PM_Department]" />
<label for="PM_Email" class="hidden-label">{{ 'contact.form.email' | t }}</label>
  <input type="email" id="PM_Email" name="contact[PM_Email]" class="{% if form.errors contains 'email' %} error{% endif %}" {% if form.email %} value="{{ form.email }}" {% endif %} autocorrect="off" autocapitalize="off" />
<label for="PM_Phone">Phone Number</label>
  <input type="tel" id="PM_Phone" name="contact[PM_Phone]" pattern="[0-9\-\(\)\ ]*" />

<!--Project Questions-->
<div class="o-layout" style="padding-top: 5px;">
  <div class="o-layout__item u-1/1 u-1/2@tab">
    <label for="InspirationorMood">Is there a print inspiration or mood board for this project? *</label>
  </div>
  <div class="o-layout__item u-1/1 u-1/2@tab" style="vertical-align: bottom">
    &emsp;<input type="radio" id="InspirationorMoodYes" name="contact[Inspiration_or_MoodBoard]" value="Yes" required/>&nbsp;&nbsp;Yes &emsp;
    <input type="radio" id="InspirationorMoodNo" name="contact[Inspiration_or_MoodBoard]" value="No" required/>&nbsp;&nbsp;No </br>
  </div>
</div>

<div class="o-layout">
  <div class="o-layout__item u-1/1 u-1/2@tab">
    <label for="ColorPalette">Is there a color palette for this project? *</label>
  </div>
  <div class="o-layout__item u-1/1 u-1/2@tab" style="vertical-align: bottom">
    &emsp;<input type="radio" id="ColorPaletteYes" name="contact[ColorPalette]" value="Yes" required/>&nbsp;&nbsp;Yes &emsp;
    <input type="radio" id="ColorPaletteNo" name="contact[ColorPalette]" value="No" required/>&nbsp;&nbsp;No </br>
  </div>
</div>

<div class="o-layout" style="margin-bottom: 10px;">
  <div class="o-layout__item u-1/1 u-1/2@tab" style="vertical-align: middle;">
    <label for="NumberOfDesigns">Number of Designs Needed *</label>
  </div>
  <div class="o-layout__item u-1/1 u-1/2@tab" style="vertical-align: middle;">
    &emsp;
    <select required class="required" id="NumberOfDesigns" style="width: 25%;" name="contact[Number_Of_Designs]">
      <option>1</option>
      <option>2</option>
      <option>3</option>
      <option>4</option>
      <option>5</option>
      <option>6</option>
      <option>7</option>
      <option>8</option>
      <option>9</option>
      <option>10</option>
      <option>11</option>
      <option>12</option>
      <option>13</option>
      <option>14</option>
      <option>15</option>
      <option>16</option>
      <option>17</option>
      <option>18</option>
      <option>19</option>
      <option>20</option>
      <option>20+</option>
    </select>
  </div>
  <div class="Caret"></div>
</div>

<!--Technical @R_54_4045@ion-->
<h2 class="plumager_subheading" style="text-align: center; padding-top: 15px;">Technical @R_54_4045@ion</h2>

<label for="SubstrateFabric">Substrate / Fabrics *</label>
  <input type="text" id="SubstrateFabric" name="contact[SubstrateFabric]" required/>

<div class="o-layout" style="padding-top: 10px;">
  <div class="o-layout__item u-1/1 u-1/2@tab">
    <label for="ColoRSSeparated">Colors Separated? *</label>
  </div>
  <div class="o-layout__item u-1/1 u-1/2@tab" style="vertical-align: bottom">
    &emsp;<input type="radio" id="ColoRSSeparatedYes" name="contact[ColoRSSeparated]" value="Yes" required/>&nbsp;&nbsp;Yes &emsp;
    <input type="radio" id="ColoRSSeparatedno" name="contact[ColoRSSeparated]" value="No" required/>&nbsp;&nbsp;No <br />
  </div>
</div>

<div class="o-layout" style="margin-bottom: 10px;">
  <div class="o-layout__item u-1/1 u-1/2@tab" style="vertical-align: middle;">
    <label for="NumberOfColors">Number of Colors</label>
  </div>
  <div class="o-layout__item u-1/1 u-1/2@tab" style="vertical-align: middle;">
    &emsp;
    <select id="NumberOfColors" style="width: 25%;" name="contact[Number_Of_Colors]">
      <option>-</option>
      <option>1</option>
      <option>2</option>
      <option>3</option>
      <option>4</option>
      <option>5</option>
      <option>6</option>
      <option>7</option>
      <option>8</option>
      <option>9</option>
      <option>10</option>
      <option>11</option>
      <option>12</option>
      <option>13</option>
      <option>14</option>
      <option>15</option>
      <option>16</option>
      <option>16+</option>
    </select>
  </div>
</div>

<label for="PrintingMethod">Printing Method(s) *</label><br />
<div required class="o-layout required" style="padding-bottom: 15px">
  <div class="o-layout__item u-1/1 u-1/2@tab">
    &emsp;<input type="checkBox" id="PrintingMethod" name="contact[PrintMethod_1]" value="Digital" />&emsp;Digital<br/> &emsp;
    <input type="checkBox" id="PrintingMethod" name="contact[PrintMethod_2]" value="Screen-Printing" />&emsp;Screen-Printing <br/> &emsp;
    <input type="checkBox" id="PrintingMethod" name="contact[PrintMethod_3]" value="Sublimation" />&emsp;Sublimation <br/>
  </div>
  <div class="o-layout__item u-1/1 u-1/2@tab">
    &emsp;<input type="checkBox" id="PrintingMethod" name="contact[PrintMethod_4]" value="Not Sure" />&emsp;Not Sure <br/> &emsp;
    <input type="checkBox" id="PrintingMethod" name="contact[PrintMethod_5]" value="Other" />&emsp;Other (Please specify below.)<br/>
    <input type="text" id="Other" name="contact[OtherPrintMethod]" />
  </div>
</div>

<label for="FileFormats">File Format(s) Needed *</label></br>
<div required class="o-layout required" style="padding-bottom: 15px">
  <div class="o-layout__item u-1/1 u-1/2@tab">
    &emsp;<input type="checkBox" id="FileFormats" name="contact[FileFormats_1]" value="AI" />&emsp;AI<br/>
    &emsp;<input type="checkBox" id="FileFormats" name="contact[FileFormats_2]" value="EPS" />&emsp;EPS <br/>
    &emsp;<input type="checkBox" id="FileFormats" name="contact[FileFormats_3]" value="PDF" />&emsp;PDF <br/>
    &emsp;<input type="checkBox" id="FileFormats" name="contact[FileFormats_4]" value="TIFF" />&emsp;TIFF <br/>
    &emsp;<input type="checkBox" id="FileFormats" name="contact[FileFormats_5]" value="PSD" />&emsp;PSD <br/>

  </div>
  <div class="o-layout__item u-1/1 u-1/2@tab">
    &emsp;<input type="checkBox" id="FileFormats" name="contact[FileFormats_6]" value="PNG" />&emsp;PNG <br/>
    &emsp;<input type="checkBox" id="FileFormats" name="contact[FileFormats_7]" value="JPEG" />&emsp;JPEG<br/>
    &emsp;<input type="checkBox" id="FileFormats" name="contact[FileFormats_8]" value="Not Sure" />&emsp;Not Sure <br/>
    &emsp;<input type="checkBox" id="FileFormats" name="contact[FileFormats_9]" value="Not Sure" />&emsp;Other (Please specify below.) <br/>
    <input type="text" id="OtherFile" name="contact[OtherFileFormat]" />
  </div>
</div>

<label for="ScreenSize">Repeat/Screen Size (cm/in)</label>
<div class="o-layout">
  <div class="o-layout__item u-1/1 u-1/2@tab">
    <label for="Vertical">Vertical</label>
    <input type="text" name="contact[VerticalDimensions]" id="Vertical" />
  </div>
  <div class="o-layout__item u-1/1 u-1/2@tab">
    <label for="Horizontal" class="hidden-label">Horizontal</label>
    <input type="text" name="contact[PM_Last_Name]" id="Horizontal" />
  </div>
</div>

<label for="ContactFormMessage">{{ 'contact.form.message' | t }} *</label>
<textarea rows="5" id="ContactFormMessage" placeholder="Additional Notes" name="contact[body]" required>{% if form.body %}{{ form.body }}{% endif %}</textarea>

<input type="submit" class="c-btn c-btn--primary c-btn--center c-btn--full u-mt u-mb-" value="{{ 'contact.form.send' | t }}"> {% endform %}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)