Answer the question
In order to leave comments, you need to log in
What is the code to send an email?
Hello. There is an html form for sending data to the mail. But there is no executable file itself. Who can tell what exactly needs to be written in PHP so that the data is sent. The HTML is below.
<form data-fw-form-id="fw_form" class="fw_form_fw_form" method="post" action="" data-fw-ext-forms-type="contact-forms" >
<input type="hidden" name="fwf" value="fw_form" />
<input type="hidden" value="164aac1f19" />
<input type="hidden" name="_wp_http_referer" value="" />
<input type="hidden" name="fw_ext_forms_form_type" value="contact-forms" />
<input type="hidden" name="fw_ext_forms_form_id" value="contact-form-55df1e118bf1a" />
<div class="wrap-forms">
<div class="fw-row">
<h2 class="contact_title">Форма обратной связи</h2>
<!-- End Date of Reservation -->
<div class="paper_title">Заполните все поля</div>
</div>
<div class="fw-row">
<div class="fw-col-xs-12 fw-col-sm-6 form-builder-item">
<div class="field-text">
<label for="id-5661">Имя<sup>*</sup></label>
<input type="text" name="name" placeholder="Имя" value="" id="id-5661" required="required" >
</div>
</div>
<div class="fw-col-xs-12 fw-col-sm-6 form-builder-item">
<div class="field-text">
<label for="id-5662">Фамилия<sup>*</sup></label>
<input type="text" name="family" placeholder="Фамилия" value="" id="id-5662" required="required" >
</div>
</div>
</div>
<div class="fw-row">
<div class="fw-col-xs-12 fw-col-sm-6 form-builder-item">
<div class="field-text">
<label for="id-5663">Телефон<sup>*</sup></label>
<input type="text" name="phone" placeholder="Телефон" value="" id="id-5663" required="required" >
</div>
</div>
</div>
<div class="fw-row"></div>
</div>
<div>
<input type="submit" value="Отправить"/>
</div>
</form>
Answer the question
In order to leave comments, you need to log in
Какой код для отправки письма?
mail('[email protected]', 'Тема', 'Сообщение');
Посмотри php.net/manual/ru/function.mail.php
Правда, не всегда работает. Я использую библиотеку libmail.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question