AMP表格邮件

时间:2018-11-04 01:51:28

标签: forms submit action amp-html amp-form

我在AMP-Project上做了一个表格。 该表格似乎有效,但是我们将服务器信息放在哪里? 我们需要为action-xhr创建一个mailer.php吗? 不仅包含收件人电子邮件,而且还包含SMTP连接的登录信息。

<section class="MailFormSection">
        <div>
            <h4 class="rshead4">Say Hello!</h4>
            <p>Thank you for taking the time to reach me.<br />Let's see together how we can put more security in your life or business.</p>


            <form method="post" action-xhr="#" target="_top">
                <div class="ampstart-input inline-block relative mb3">
    <input type="text"
        name="name"
        class="rsinput"
        placeholder="Name..."
        required>
</div>
 <div class="ampstart-input inline-block relative mb3">
    <input type="email"
        name="email"
        class="rsinput"
        placeholder="Email...">
</div>
     <div class="ampstart-input inline-block relative mb3">
    <input type="text-area"
        name="enquiry"
        class="rsinput"
        placeholder="How can I help?">
</div>

<div class="ampstart-input inline-block relative mb3">
<input type="text-area"
 name="message"
 class="rstextarea"
 placeholder="tell me more about your project!">
</div>

<div class="ampstart-input inline-block relative mb3">
    <input type="tel"
        name="my_tel"
        class="rsinput"
        placeholder="Contact Number">
</div>
<input type="submit"
    value="Contact Me"
    class="rssubbtn">
        <div submit-success>
    <template type="amp-mustache">
        Success! Thanks {{name}}. Our design specialists will contact you shortly.
    </template>
</div>
<div submit-error>
    <template type="amp-mustache">
        Error! Thanks {{name}} for trying the
        <code>amp-form</code> demo with an error response.
    </template>
</div>
            </form>

0 个答案:

没有答案