AMP форма почтовой программы - PullRequest
0 голосов
/ 04 ноября 2018

Я сделал форму с AMP-Project. Форма кажется верной, но где мы размещаем информацию о сервере? Нужно ли нам создавать mailer.php для action-xhr? Было бы здорово включить не только адрес электронной почты получателя, но и логин для 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>
...