我一直在通过此链接工作https://www.npmjs.com/package/html-form-send-email-via-google-script-without-server也https://github.com/dwyl/html-form-send-email-via-google-script-without-server但不能通过点10 & 11 - 获取“感谢您的消息”警报而不是JSON响应/警报。使用Google Apps邮件从静态HTML表单发送电子邮件
我已经与Google在线交谈过,他们现在已经在这里提到我。我使用bootstrap - 我的代码在下面,任何想法都会很棒。
<section class="test">
<a name="index"></a>
<div class="container">
<div class="row index_section">
<div class="col-md-10 col-md-push-1">
<h2 class="index_h2">The RE Ledger Foundation is a consortium of east coast real estate and financial services executives with the purpose of exploring the applications and advantages of harnessing a blockchain backed peer-to-peer network.</h2>
<p><a class="btn btn-secondary btn-lg index_button" role="button" href="#contact" data-toggle="modal" >Contact Us</a></p>
</div>
</div>
</div>
</section>
<div class="modal fade" id="contact" role="dialogue">
<div class="modal-dialog">
<div class="modal-content">
<form class="form-horizontal" method="POST" action="https://script.google.com/a/macros/headlandholdings.co/s/AKfycbyA1uVrYJK3dowguYNKo65hPfQKLGCFh8_865dFMhXzfE__Io8/exec">
<div class="modal-header">
<h4>Contact RE Ledger</h4>
</div>
<div class="modal-body">
<div class="form-group"><!-- For every row -->
<label for="Contact-name" class="col-lg-2 control-label"> Name: </label>
<div class="col-lg-10">
<input type="text" class="form-control" id="contact-name" name="contact-name" placeholder="Please put your full name">
</div>
</div>
<div class="form-group"><!-- For every row -->
<label for="contact-email" class="col-lg-2 control-label"> Email: </label>
<div class="col-lg-10">
<input type="email" class="form-control" id="contact-email" name="contact-email" placeholder="[email protected]">
</div>
</div>
<div class="form-group"><!-- For every row -->
<label for="contact-message" class="col-lg-2 control-label"> Message: </label>
<div class="col-lg-10">
<textarea type= "text" name="message" rows="8" class="form-control"> </textarea>
</div>
</div>
<div class="modal-footer">
<a href="#index" class="btn btn-default" data-dismiss="modal">Close it</a>
<button class="btn btn-primary" type="submit"> Submit</button>
</div>
<div style="display:none;" id="thankyou_message">
<h2><em>Thanks</em> for contacting us!</h2>
</div>
</div>
</form>
</div>
</div>
</div>
</div><!-- /.container -->
<!-- Included so that when you complete a contact request you get a message -->
<script data-cfasync="false" type="text/javascript"
src="https://cdn.rawgit.com/dwyl/html-form-send-email-via-google-script-without-server/master/form-submission-handler.js"></script>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.js"></script>
嗨 - 这是正确生成的链接 - 是什么让你觉得是不是?我认为事实消息正在转发到电子邮件帐户确认此 – Otis
@Otis因为如果您不是该github帖子的所有者并共享SAME谷歌帐户。您将无法生成相同的链接。当我按照步骤进行确认时,我没有生成相同的链接。当您部署为Web应用程序时,您正在部署您的OWN Web应用程序,从而生成您的OWN链接。 – Tim1234
这就是我所做的链接正在生成属于我。这不同于https://cloud.githubusercontent.com/assets/194400/10560470/e2d7fcb6-7503-11e5-9d9a-3771423e51fa.png – Otis