My site’s emails (form, mail() function) are no longer being sent: what should I do?

Procédure

The emails sent by your site (contact form, WordPress, online store) are sent using PHP’s mail() function, with the sender address mail_php@your-domain. If they no longer arrive, check the items below in order: the “Mail Tracking” tool shows what happened to each sent message, and “Mail Abuse” indicates a possible block. Stop as soon as you have found the cause.

How your site sends its emails

On an LWS Panel hosting account, the address mail_php@your-domain is automatically created by LWS for scripts on your site. You can see it on the “Emails” page, with the “PHP System” type: it has no “Actions” button and nothing needs to be configured there.

The SPF record provided by default for your domain authorizes these sendings (it contains a:mailphp.lws-hosting.com). You can find it on the “Emails” page, in the “Mail status” section, “SPF” link. If you have modified your SPF record, keep this mention.

Find your site’s sent emails

  1. Send a test email

    Fill in your contact form (or trigger the sending that does not work), noting the exact time and the recipient’s address.

  2. Open “Mail Tracking”

    In your hosting management area, under “Email addresses,” click “Mail Tracking.” In the search field, enter mail_php@your-domain (for example mail_php@example.com), then click “Search.”

  3. Read the status of your sent email

    Find the line that matches the time and recipient of your test:

Check that your emails are not being blocked

When spam is sent from your domain (a form used by bots, hacked script), LWS may suspend sending. In the “Email addresses” section, click “Mail Abuse”: a red message indicates the blocked addresses and the reason. Fix the cause before requesting unblocking, by following the help article Understanding and resolving SMTP blocking for Mail Abuse on LWS Panel.

The most common cause is a contact form without a captcha. Add one first:

The mail() function on my hosting is disabled

After many spam emails have been sent from a site, the hosting’s mail() function may be disabled. Your forms can then no longer send messages.

In this case, first secure your forms (captcha) and update your site, its plugins/extensions, and its theme, then contact technical support, who will tell you what to do next: How do I contact LWS technical support?

Another solution: send through an email account on your domain (SMTP)

Your site can also send its messages through a real email account on your domain, using its login and password, instead of the mail() function. For WordPress, the setup is explained in the help article How to configure email sending via SMTP on WordPress. The outgoing server settings are in the help article Which settings should be used to configure an email address (IMAP, POP, SMTP)?

Check that everything is working

Send another test from your site, then search again for mail_php@your-domain in “Mail Tracking” (or the account address, if you switched to SMTP).

Contact support

If your sent emails do not appear in “Mail Tracking” or remain in error, open a ticket from your client area. Provide the address of your form page, the recipient address, the date and time of your test with the time zone, and the full error message (or a screenshot).

Related articles

help.lws.net/a/971
Was this article helpful?

Yes

No

Read 34 227 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

Questions about the article 1

Ask a question
quebec56
13 Nov 2022
pas de retour mail sur formulaires, pas d'accès à la configuration PhP mail (on/off)
fabrice-LWS Official answer
14 Nov 2022
Bonjour, la fonction PHPMail() était bloquée pour l'erreur L-SPAM20. Vous pouvez avoir plus d'informations concernant cette erreur en vous rendant sur la page suivante: https://aide.lws.fr/a/1099 . Le déblocage de la fonction a été effectué.
Was this answer helpful?

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.