Simple contact form snippet for MODX Revolution 2.x.x
@author Dmitry Serenko @copyright Copyright 2021, Dmitry Serenko
Additional options for customizing snippet
to - Primary email address for sending mail [default=info@yourdomain.com]
&to=`test@gmail.com`
cc - Add carbon copy to header of the mail [default=]
&cc=`test@gmail.com, test2@gmail.com`
bcc - Add blind carbon copy to header of the mail [default=]
&bcc=`test@gmail.com, test2@gmail.com`
subject - Subject of the mail [default=Feedback from the site yourdomain.com]
&subject=``
headline - Headline of the message [default=You have received a new message from the site]
&headline=``
success - [default=Your message has been successfully sent]
&success=``
input - Input list of the form [default={"name":"Contact person","email":"Email","phone":"Phone"}]
&input=``
textarea - Textarea list of the form [default=]
&textarea=`{"text":"Your message"}`
button - Text of the submit button [default=Submit]
&button=`Submit form`
placeholder - Display title as placeholder [default=false]
&placeholder=`true`
Примеры быстрого использования сниппета Форма обратной с вязи с полями: Контактное лицо, Email, Телефон, Сообщение
[[!easyContactForm?
&subject=`Сообщение с сайта [[++site_name]]`
&to=`test@gmail.com`
&headline=`Поступило новое сообщение с сайта [[++site_name]]`
&success=`Ваше сообщение успешно отправлено`
&input=`{"name":"Контактное лицо","email":"Email","phone":"Телефон"}`
&textarea=`{"text":"Сообщение"}`
&button=`Отправить`
]]
Форма заказа обратного звонка с полями: Контактное лицо, Телефон
[[!easyContactForm?
&subject=`Обратный звонок с сайта [[++site_name]]`
&to=`test@gmail.com`
&headline=`Поступил заказ обратного звонка с сайта [[++site_name]]`
&success=`Заявка успешно отправлена, наш менеджер перезвонит вам в ближайшее время`
&input=`{"name":"Контактное лицо","phone":"Телефон"}`
&button=`Заказать звонок`
]]
Дополнительные опции для настройки сниппета с примерами использования
to - Основной Email для оправки формы [default=info@yourdomain.com]
&to=`test@gmail.com`
cc - Добавить получателей в копию (список адресов через запятую) [default=]
&cc=`test@gmail.com, test2@gmail.com`
bcc - Добавить получателей в скрытую копию (список адресов через запятую) [default=]
&bcc=`test@gmail.com, test2@gmail.com`
subject - Тема отправляемого сообщения [default=Feedback from the site yourdomain.com]
&subject=`Тема сообщения`
headline - Заголовок сообщения [default=You have received a new message from the site]
&headline=`Сообщение с сайта`
success - Текст после успешной отправки [default=Your message has been successfully sent]
&success=`Ваше сообщение успешно отправлено`
input - Список полей типа input (список полей в виде массива) [default={"name":"Contact person","email":"Email","phone":"Phone"}]
&input=`{"name":"Контактное лицо","email":"Email","phone":"Телефон"}`
textarea - Список полей типа textarea (список полей в виде массива) [default=]
&textarea=`{"text":"Сообщение"}`
button - Текст кнопки отправить [default=Submit]
&button=`Отправить`
placeholder - Отображать title как placeholder [default=false]
&placeholder=`true`