电子邮件表格给出奇怪的错误

email form gives strange error

我试图修复的电子邮件表单给我一个错误提示:

无法通过这种方式访问​​,您需要有一个名为 'sendtoemail'

的输入字段

这很奇怪,因为我有那个输入字段。这是代码:

<h2>Contact AirKrete</h2>
    <form action="http://www.hostmonster.com/monstermail" enctype="multipart/form-data" method="post"><p><label><input type="checkbox" name="locate " id="locate "><strong>Locate an Installer</strong></label><strong><label><input type="checkbox" name="become" id="become">Become an Installer</label></strong></p>
    <div class="left">Name:<div>
      <input name="name" type="text" id="name" onDblClick="MM_validateForm('name','','R');return document.MM_returnValue" size="40" />
    </div></div>
    <div class="left">Email:<div><input name="mailfrom" type="text" onDblClick="MM_validateForm('email','','NisEmail');return document.MM_returnValue" size="40" /></div></div>
    <div class="left">Street:<div><input name="street" type="text" id="street" onDbleClick="MM_validateForm('street','','R');return document.MM_returnValue" size="40" /></div></div>
    <div class="left">City:<div><input name="city" type="text" id="city" onDbleClick="MM_validateForm('city','','R');return document.MM_returnValue" size="40" /></div></div>
    <div class="left">State:<div><input name="state" type="text" id="state" onDblClick="MM_validateForm('state','','R');return document.MM_returnValue" size="10" /> Zip:
      <input name="zip" type="text" id="zip" onDblClick="MM_validateForm('zip','','R');return document.MM_returnValue" size="15" />
    </div></div>
    <div class="left">Country:<div><input name="country" type="text" id="country" onDblClick="MM_validateForm('country','','R');return document.MM_returnValue" size="40" /></div></div>
    <div class="left">Phone:<div><input name="phone" type="text" id="phone" onDblClick="MM_validateForm('phone','','R');return document.MM_returnValue" size="40" /></div></div></p>

    <p>The fields above are REQUIRED<br>
    <strong>How did you hear about AirKrete<span style="font-size:11.0pt; ">®</span>? <br>
    Please make a selection.<span id="sprycheckbox1"><span class="checkboxRequiredMsg"></span></span></strong></p><div class="radiox"><label><input type="radio" name="Connection" value="friend" id="Connection_0">Friend</label></div>
    <div class="radiox"><label><input type="radio" name="Connection" value="jobspec" id="Connection_1">Job Specification</label></div>
    <div class="radiox"><label><input type="radio" name="Connection" value="hgtv" id="Connection_2">HGTV Promotion</label></div>
    <div class="radiox"><label><input type="radio" name="Connection" value="web" id="Connection_3">Web Browsing</label></div>
    <div class="radiox"><label><input type="radio" name="Connection" value="radio" id="Connection_4">Radio</label></div>
    <div class="radiox"><label><input type="radio" name="Connection" value="tv" id="Connection_5">TV</label></div>
    <div class="radiox"><label><input type="radio" name="Connection" value="other" id="Connection_6">Other</label></div></p>
    <p class="clear-fix">&nbsp;</p>
    <div><p><strong>Comments:</strong><br></p></div>
    <p><textarea name="Comments" cols="43" rows="10" id="Comments"></textarea></p>
    <p><label>If you have Attachments....</label></p>
    <p><input name="file_attachment" type="file" size="30" /></p>
    <p>When completed please click Send Email Button</p>
      <input name="sendtoemail" type="hidden" id="sendtoemail" value="info@airkrete.com" />
      <input type="submit" onClick="MM_validateForm('name','','R','zip','','R','phone','','R');return document.MM_returnValue" value="Send Email" />

      <input type="hidden" name="redirect" value="http://www.airkrete.com/airkrete_thankyou.php" /><p>Thank You</p>
    </form>

如果您知道我在这里做错了什么,将不胜感激一些建议。谢谢。

我打开了实时聊天并与一位代表讨论了这件事。事实证明他们停止了这项服务,但并没有将其从他们使用的选项中删除。谢谢大家的帮助。

BlueMail 禁止将表单发送到不在同一 bluehost 帐户上托管的电子邮件地址。解决方案是在帐户中设置一个邮件转发器,然后可以将 "forward" 发送到异地。然后只需将表格发送到转发的地址即可。