Universal plugin for submitting HTML forms using PHP, jQuery, AJAX. The plugin automatically collects the values of all form fields and sends them in the form of an HTML table to the specified mailbox. To conveniently and reliably send emails via an SMTP server, the PHPMailer library is used.
Documentation
https://cdn.jsdelivr.net/gh/WahaWaher/sendmail-js/dist/
# NPM
npm i sendmails-js
# YARN
yarn add sendmails-js <!-- jQuery -->
< script src =" libs/jquery/dist/jquery.min.js " > </ script >
<!-- jquery.sendmail.js -->
< script src =" dist/jquery.sendmail.js " > </ script > $ recipients // Получатели писем
$ smtp_host // SMPT-адрес сервера
$ smtp_port // TCP-порт
$ smtp_secure // SMTP TLS/SSL
$ smtp_auth // SMPT-аутентификация
$ smtp_username // Почтовый ящик, с которого будут отправляться письма
$ smtp_password // Пароль почтового ящика, с которого будут отправляться письма
// Остальные параметры по необходимости... Parameter values: SMPT-адрес сервера , TCP-порт , SMTP TLS/SSL , SMPT-аутентификация will depend on the mailbox that will be selected as the sender. By default, all settings are set to gmail.com .
SMTP settings for the most popular email services
If you encounter errors when sending via SMTP Google
< form class =" example " action =" mail/sendmail.php " method =" POST " >
< input type =" text " name =" Имя " >
< input type =" email " name =" E-mail " >
< input type =" submit " value =" Отправить " >
</ form > $ ( 'form.example' ) . sendMail ( {
// Параметры...
} ) ; Solving problems/bugs of the plugin, as well as comments and suggestions in the corresponding topic
For all other questions: [email protected]
Copyright (c) 2018-2020 Sergey Kravchenko
This license permits persons who obtain a copy of the software and accompanying documentation (hereinafter referred to as the “Software”) to use the Software without limitation, without limitation, including the unrestricted right to use, copy, modify, merge, publish, distribute, sublicense and/or sale of copies of the Software, as well as to persons to whom this Software is provided, subject to the following conditions:
The above copyright notice and these terms and conditions must be included in all copies or significant portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. LIMITED TO THEM. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGE OR OTHER CLAIM, INCLUDING WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING OUT OF THE USE OF THE SOFTWARE OR OTHER ACTIONS WITH THE SOFTWARE.