{"id":1372,"date":"2024-06-13T09:12:55","date_gmt":"2024-06-13T07:12:55","guid":{"rendered":"https:\/\/wypo.io\/documentations\/%taxomony%\/formmaster\/envoi-de-mail\/"},"modified":"2024-07-26T20:06:10","modified_gmt":"2024-07-26T18:06:10","slug":"sending-mail","status":"publish","type":"wypo_documentations","link":"https:\/\/wypo.io\/en\/documentations\/formmaster\/sending-mail\/","title":{"rendered":"Sending mail"},"content":{"rendered":"\n<div class=\"wp-block-group   hf_animated fade_bottom default is-layout-constrained wp-block-group-is-layout-constrained\">\n<figure class=\"wp-block-image aligncenter size-large is-style-shadow   \"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"720\" src=\"https:\/\/wypo.io\/wp-content\/uploads\/2024\/06\/wypo-documentation-formmaster-form-mail-1024x720.jpg\" alt=\"Wypo Documentation Formmaster Form Mail\" class=\"wp-image-1380\" srcset=\"https:\/\/wypo.io\/wp-content\/uploads\/2024\/06\/wypo-documentation-formmaster-form-mail-1024x720.jpg 1024w, https:\/\/wypo.io\/wp-content\/uploads\/2024\/06\/wypo-documentation-formmaster-form-mail-300x211.jpg 300w, https:\/\/wypo.io\/wp-content\/uploads\/2024\/06\/wypo-documentation-formmaster-form-mail-768x540.jpg 768w, https:\/\/wypo.io\/wp-content\/uploads\/2024\/06\/wypo-documentation-formmaster-form-mail.jpg 1341w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"\">In this section, we&#8217;ll explain how to configure e-mail delivery for forms created with the FormMaster plugin.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-style-smallbordertop   hf_animated fade_bottom default is-layout-constrained wp-block-group-is-layout-constrained\" style=\"margin-top:var(--wp--preset--spacing--50);padding-top:var(--wp--preset--spacing--50)\">\n<h2 class=\"wp-block-heading   \" datalink=\"content-access-sending-parameters\">Access sending parameters<\/h2>\n\n\n\n<p class=\"\">To access your e-mail settings, go to your form&#8217;s configuration page. You&#8217;ll find several tabs. Select the <strong>\u201cE-mail content\u201d<\/strong> tab.<\/p>\n\n\n\n<h2 class=\"wp-block-heading   \" datalink=\"content-e-mail-content\">E-mail content<\/h2>\n\n\n\n<p class=\"\">In this section, you can define the details of the e-mail message that will be sent when a user submits the form.<\/p>\n\n\n\n<h2 class=\"wp-block-heading   \" datalink=\"content-available-fields\">Available fields<\/h2>\n\n\n\n<p class=\"\">You have access to certain dynamic fields that you can use in your e-mail. These fields are taken directly from the form content.<\/p>\n\n\n\n<p class=\"\">For each of these fields, you can also add an <code>underscore (_)<\/code> to retrieve the value of the field rather than its label.<\/p>\n\n\n\n<p class=\"\">Clicking <code>+<\/code> will take you to shortcodes defined by FormMaster, such as :<\/p>\n\n\n\n<ul class=\"wp-block-list   \">\n<li class=\"\"><code>_render_all_fields<\/code> to display all form fields directly, can be useful in the body of the e-mail.<\/li>\n\n\n\n<li class=\"\"><code>_wpformmaster_referralurl<\/code>, which returns the page referencing the form.<\/li>\n\n\n\n<li class=\"\"><code>_wpformmaster_useragent<\/code> returns the user&#8217;s user agent<\/li>\n\n\n\n<li class=\"\"><code>_site_admin_email<\/code> returns the administration e-mail address<\/li>\n\n\n\n<li class=\"\"><code>_site_title<\/code> returns the site title<\/li>\n\n\n\n<li class=\"\"><code>_site_url<\/code> which returns the site url<\/li>\n\n\n\n<li class=\"\"><code>_site_privacy_policy<\/code> which returns the title and url of the \u201cPrivacy Policy\u201d page, also works with the <a href=\"\/en\/wordpress-plugins\/wp-simply-cookie\/\" data-type=\"page\" data-id=\"849\">WP Simply Cookie<\/a> plugin<\/li>\n<\/ul>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-style-smallbordertop   hf_animated fade_bottom default is-layout-constrained wp-block-group-is-layout-constrained\" style=\"margin-top:var(--wp--preset--spacing--50);padding-top:var(--wp--preset--spacing--50)\">\n<h2 class=\"wp-block-heading   \" datalink=\"content-field-configuration\">Field configuration<\/h2>\n\n\n\n<h3 class=\"wp-block-heading   \" datalink=\"content-recipients-e-mail\">Recipient&#8217;s e-mail<\/h3>\n\n\n\n<p class=\"\">Enter the recipient&#8217;s email address. By default, this is set to <code>&#91;_site_admin_email&#93;<\/code>, which corresponds to the site administrator&#8217;s email address.<\/p>\n\n\n\n<p class=\"\">You can select different recipients, separating them with <code>commas (,)<\/code>.<\/p>\n\n\n\n<p class=\"\">You can change the recipient according to the form&#8217;s responses by clicking on the \u201cif\u201d icon.<\/p>\n\n\n\n<h3 class=\"wp-block-heading   \" datalink=\"content-from\">From<\/h3>\n\n\n\n<p class=\"\">Enter the sender&#8217;s email address. By default, it&#8217;s configured as <code>&#91;_site_title&#93; &lt;wordpress@domainname&gt;<\/code> . You can customize this address.<\/p>\n\n\n\n<h3 class=\"wp-block-heading   \" datalink=\"content-subject\">Subject<\/h3>\n\n\n\n<p class=\"\">Define the e-mail subject. The default is <code>&#91;_site_title&#93; Contact request<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading   \" datalink=\"content-message-body\">Message body<\/h3>\n\n\n\n<p class=\"\">Write the message content. By default, it includes the user&#8217;s name and email, followed by a message indicating that a contact form has been submitted on your website.<\/p>\n\n\n\n<p class=\"\">Sample content:<\/p>\n\n\n    <div class=\"wp-block-habefast-code  \">\n      <header class=\"habefast-code-header\">\n        <div class=\"habefast-code-lang is-lang-plain\">\n          Plain Text        <\/div>\n      <\/header>\n      <textarea\n        class=\"habefast-code-source\"\n        name=\"codemirror-1232719375\"\n        id=\"codemirror-1232719375\"\n      >From: &#91;your-name&#93; &#91;your-email&#93;\n\n&#91;_render_all_fields&#93;\n&#8212;\nThis message informs you that a contact form has been submitted on your website (&#91;_site_title&#93; &#91;_site_url&#93;).<\/textarea>\n      <script>\n        CodeMirror.fromTextArea( document.getElementById('codemirror-1232719375'), {\n          mode: '',\n          readOnly: true,\n          lineNumbers: true,\n          firstLineNumber: 1,\n          matchBrackets: true,\n          indentUnit: 4,\n          tabSize: 4,\n          lineWrapping: true,\n        } );\n      <\/script>\n    <\/div>\n    \n\n\n<h3 class=\"wp-block-heading   \" datalink=\"content-additional-headers\">Additional headers<\/h3>\n\n\n\n<p class=\"\">Add additional headers if necessary.<br>For example, you could add <code>Reply-To: &#91;your-email&#93;<\/code> so that replies are sent to the email address of the user who submitted the form.<\/p>\n\n\n\n<h3 class=\"wp-block-heading   \" datalink=\"content-attachments\">Attachments<\/h3>\n\n\n\n<p class=\"\">You can also add attachments to the e-mail by specifying the files to be attached.<\/p>\n\n\n\n<h3 class=\"wp-block-heading   \" datalink=\"content-other-e-mails\">Other e-mails<\/h3>\n\n\n\n<p class=\"\">You can send multiple mails by default limited to 2, you can change this limit with the filter <a href=\"\/en\/documentations\/formmaster\/hooks-filters\/#content-wpfmaster_form_mails_counter\">wpfmaster_form_mails_counter<\/a>.<\/p>\n<\/div>\n","protected":false},"featured_media":0,"parent":1366,"menu_order":12,"template":"","meta":{"_habefastfse_class":"","hf_wpseo_meta_title":"Setting up e-mail with FormMaster [separator] [sitetitle]","hf_wpseo_meta_description":"Learn how to set up emailing for your forms with the FormMaster plugin. Customize recipients, senders and email content easily with our detailed guide.","hf_wpseo_meta_robots_index":"","hf_wpseo_meta_robots_follow":true,"hf_wpseo_meta_robots_advanced":"{}","hf_wpseo_meta_canonical_url":"","documentation_description":"","documentation_menu_text":"","documentation_related_pageid":0,"wypo_hidden_role_wypo_users_not_logged":false,"wypo_visibility_role_wypo_users_not_logged":false,"wypo_hidden_role_administrator":false,"wypo_visibility_role_administrator":false,"wypo_hidden_role_habefast":false,"wypo_visibility_role_habefast":false,"wypo_hidden_role_customer":false,"wypo_visibility_role_customer":false,"wypo_hidden_role_habefast_manager":false,"wypo_visibility_role_habefast_manager":false,"wypo_hidden_for_role":false,"wypo_visibility_for_role":false},"class_list":["post-1372","wypo_documentations","type-wypo_documentations","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/wypo_documentations\/1372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/wypo_documentations"}],"about":[{"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/types\/wypo_documentations"}],"up":[{"embeddable":true,"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/wypo_documentations\/1366"}],"wp:attachment":[{"href":"https:\/\/wypo.io\/en\/wp-json\/wp\/v2\/media?parent=1372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}