How email delivery works
The short answer
Why doesn't the email leave at the moment a visitor clicks Submit? WebForms first saves the submission and prepares each email it owes. It puts them in a queue, and a scheduled task of your store hands the queue to your mail server. Store-wide switches can hold the queue or stop new emails, and a notification that can't reach anyone is marked in the admin.
How it works
From a submission to the queue
When a visitor sends a form, WebForms looks at each switched-on notification for that event, such as Form Submitted. For each one it:
- checks the conditions against the answers. If they don't match, that notification sends nothing;
- works out the recipients, from the addresses you typed, your store's addresses or the visitor's own address;
- counts the email against the store-wide message limits;
- prepares the subject and text, with the merge tags filled in from this submission;
- puts the email in the queue.
The text is fixed at this moment. If you edit the notification afterwards, emails already in the queue keep the text they were prepared with.
From the queue to the mail server
Magento runs scheduled tasks, called cron, in the background. One of them, WebForms' delivery task, takes the waiting emails and hands them to your store's mail server. Each run sends until the queue is empty, for up to 50 seconds, and the next run picks up the rest. If the mail server refuses an email, WebForms may try it again before it gives up on it.
That's why the email isn't sent while the visitor's form is being submitted, and why no email goes out on a store where cron doesn't run. See Installation.
A test sent with Send Test Email is the exception: it skips the queue. While Deliver Notifications is No, the test is refused too.
What can stop an email
-
Deliver Notifications set to No holds the whole queue. WebForms still prepares every email. After you select Yes, the waiting emails go back to the delivery task, and the other checks on this list still apply. On a new installation it's No. While emails wait for it, the admin shows a system message at the top of the page: "N WebForms notification(s) are waiting to be sent because Deliver Notifications is switched off."
-
Paused Triggers stops new emails for the events you select. For a submission that arrives while Form Submitted is paused, no email is created at all, and clearing the event later doesn't send it.
-
The message limits stop a flood of email. Emails over Messages to Visitors per Hour wait and go out in the following hours; one that would have to wait more than 24 hours isn't sent. If the emails of one notification would break one of the other limits, Messages per Submission per Day or Messages per Mailbox per Hour, none of them is sent.
-
A recipient WebForms can't use. The notification's card in the Notifications section shows a Cannot Send badge. Point at it to read the reason, for example "recipients taken from a field are switched off for this store". Sometimes none of the form's switched-on Form Submitted notifications can deliver. Then the top of the section says Cannot send: and the reason. Otherwise it says "Emails this form sends."

-
An address that isn't an email address. WebForms skips that one entry and writes to the other recipients. The card shows Address Skipped; point at it to see the entry. Address Not Set means the email goes to a store address that still holds the placeholder of a new installation. Set a real one in Stores → Configuration → General → Store Email Addresses.
-
A notification switched off on store views. A store view can have its own Status. The card says Off in Some Store Views or Off in All Store Views. Not Currently Sent means the notification is switched on, but no store view sends it. See Store views and translations.
-
An email to the assignee on Form Submitted. On Submission Assigned, an email to the assignee goes to the person the submission was just assigned to, so its card never shows Cannot Send for that. On Form Submitted, the email goes to the form's Default Assignee, and only when that person actually gets the new submission. If they won't, the card shows Cannot Send and names the reason: the form has no Default Assignee, it doesn't store submissions, the Default Assignee isn't an active administrator or can't open the form, or their account has no valid email address. The same rules decide whether a new submission is assigned at all. See Assigning submissions.
-
Do Not Store Submissions in the form's settings doesn't stop the emails while Deliver Notifications is on. WebForms keeps the submission, hidden from the Inbox, until its emails have been sent, then deletes it. With Deliver Notifications off, the submission and its unsent emails are deleted at once.
-
Disable Email Communications set to Yes in Magento (Stores → Configuration → Advanced → System → Mail Sending Settings) stops every email from leaving the store, and WebForms follows it, the same as Magento does for its own mail. For each store view where it is on, WebForms does not send the notification emails of that store view and closes them as unsent; the store's system log says why. Point at the Cannot Send badge on the form's notifications: it says that Disable Email Communications is on and gives the number of each store view where it is. A test email says the same instead of reporting success, and a reply to a customer is saved without being emailed. A change of the setting applies from the next delivery pass, within a minute. On a staging store that's what you want. On a live store, check this option first when no email arrives. Emails closed this way are not sent on their own after you set the option back to No; ask your developer to hand them back to delivery (see CLI, cron and queues).
The settings are under Stores → Configuration → MageMe Extensions → WebForms → Email & Replies. See Settings: Email & Replies.
What the email looks like
With Standard Content, WebForms puts your store name on top of your text and adds a plain-text copy. With Advanced Content, WebForms doesn't add the store name on top or a plain-text copy. See Writing email content.
Every email comes from the store address in the notification's Sender Identity, which can differ per store view. One exception: a notification brought over from WebForms 3 with a sender address of its own keeps sending from that address until you save the notification in the admin; from then on, it uses the selected Sender Identity. While Replies by email is on, the emails to the visitor carry a reply address of their own, so an answer is filed with the submission. An email to your team gets one too when its To address belongs to an admin user. Several addresses in To get one email each, so every admin user among them gets their own reply address; a shared mailbox or another address without an admin account doesn't. Otherwise the notification's Reply-To decides. With Fixed Address, a reply goes to the address you entered. With Person Who Submitted the Form, a reply from your team goes to the visitor. An email to the visitor without a Fixed Address answers at the store's Customer Reply Address, if one is set. In every other case, a reply goes to the sender address. See Notify your team.
An email to your team with several addresses in To goes out as a separate email to each address. The Cc and Bcc addresses get their copy with the first one.
Emails land in spam
Once the email reaches your mail server, WebForms' part is done. Whether it lands in the inbox or in spam is decided by the mail services along the way, mostly by checks on the sender's domain. WebForms has no settings for these checks: it sends every email through Magento's own mail sending, the same way as your order emails.
When the emails arrive but land in spam:
- Check which address the notification sends from: its Sender Identity, one of the addresses in Stores → Configuration → General → Store Email Addresses. Use an address on your own store's domain, not a free mailbox such as Gmail.
- Ask your hosting provider or your developer to set up SPF, DKIM and DMARC for that domain, and to send the store's email through a mail service that is allowed to send for it. Your order emails need the same.
- Send a test to a mailbox you can read, and look at the message's details or headers there. Most mail services show whether SPF and DKIM passed.
What this means for you
- Don't expect the email while you're still on the form after clicking Submit. The scheduled delivery task sends it.
- The admin has no screen that shows whether a particular email was sent. To check delivery, send a test submission to a mailbox you can read.
- To pause all WebForms email without discarding the waiting emails, set Deliver Notifications to No, not Paused Triggers.
- After you switch a notification on, look at its card. A Cannot Send badge means it will never reach anyone until you fix the reason.
- Changing an email's text doesn't change emails that are already waiting.
What's next
- Notification email not received: check, step by step, why an email didn't arrive.
- Settings: Email & Replies: Deliver Notifications, Paused Triggers and the message limits.
- Test and switch on an email: preview an email and send yourself a test.