Monitoring and managing automated emails in your web hosting plan
Find out how to monitor and manage automated emails sent from your OVHcloud web hosting plan
Objective
Automated emails are messages sent via scripts, commonly done with PHP's "mail()" function. For example, they are used for your website's contact form, allowing your visitors to send you messages.
This guide mainly applies to emails sent from scripts located on your OVHcloud web hosting plan using the PHP "mail()" function.
If you would like to manage the email accounts included in your MX Plan service or in your OVHcloud web hosting plan, please refer to our MX Plan documentation.
Although we strongly recommend using PHP's "mail()" function, you can also send emails from your shared hosting by going through a script using Simple Mail Transfer Protocol (SMTP).
This guide explains how to monitor and manage automated emails sent from your OVHcloud web hosting plan.
Requirements
OVHcloud Control Panel Access
- Direct link:
- Navigation path:
Web Cloud>Hosting plans> Select your web hosting plan
Instructions
Overview of the "Email scripts" section
To access the "Email scripts" section, click on the tabs below to view each of the 3 steps.
Go to the page, then select the web hosting plan concerned.

To avoid unwanted use of automated emails from your web hosting plan, we strongly recommend setting up a security system, such as including a "Captcha" in the forms on your website that can send emails (a contact form, for example).
If you notice that the emails generated from your scripts are no longer sent, but the service status still allows the emails to be sent ("Enabled" or "Force"), we recommend the following checks:
-
Check the scripts sending the email: The scripts may not be able to send the emails due to a syntax error. Check the content of your scripts, correct them if necessary, then try again.
-
Check email sending via test script: Create a test script that sends an email to your personal email address using the following code:
For $headers, enter the same sending email address twice.
If you receive the message The email has been sent successfully! on the email address you have defined in the line for $to, this indicates that the scripts sending your emails contain errors.
-
Make sure that your outgoing messages do not use an SMTP server: Do not specify an SMTP server in your script parameters when using the PHP "mail()" function. If you have an interface for managing emails from your website, change this setting in your website's configuration.
-
Check the total size of your email: The email sent must not exceed the total size of 10 MB (encapsulation and header included). The content of your email must not exceed 7/8 MB.
Managing the "Disabled", "Bounce" and "spam" states
In this section, you will find details on each status that has blocked your email function.
Before detailing each of these statuses, it is important to understand the points that can degrade your domain name's reputation or prevent your emails from being received.
Verify the following upstream:
- The configuration of the SPF record in the domain name's DNS zone.
- The configuration of the DMARC record in the DNS zone of the domain name, only if the destination server requires it.
- Check the reputation of the IP address that sent the email (here the IP of your web hosting plan, using tools such as MXtoolbox or Spamhaus.
- The email does not contain any elements that could be interpreted as spam. You can find a non-exhaustive list of these elements in the "Case 3: Sending legitimate emails classified as spam" section of this guide.
- If there is no blockage on the OVHcloud side, and if the email has not been received or rejected by the recipient, contact the recipient to have them check if the email has been blocked on the receiving server.
The "Disabled" status
This state occurs when:
- Too many emails were sent in quick succession.
- Too many emails are returned in error.
- You have disabled the feature in your .
To resolve this, click on the tabs below to view each of the 3 steps.
Go to the page, then select the web hosting plan concerned.
The "Bounce" status
This state occurs when a certain percentage of your emails are automatically returned with an error state.
To resolve this, click on the tabs below to view each of the 3 steps.
Go to the page, then select the web hosting plan concerned.
The "spam" status
This state occurs when spam emails are sent from your hosting.
Generally, this block is accompanied by the sending of an email titled "Abuse with your domain.tld hosting", generated automatically by our security robots.
There are three possible scenarios for this situation:
- Case 1: Robot operation on a contact form:
To resolve this issue, you will need to secure all scripts that can send emails from your hosting plan, using a "Captcha" type system.
Then go to the "Email scripts" section of your hosting plan. To do so, click on the tabs below to view each of the 3 steps.
Go to the page, then select the web hosting plan concerned.
- Case 2: Malicious file injected into your hosting system:
To correct this, you must do at least the following:
- Analyse your hosting logs to identify security vulnerabilities and infected files.
- Delete or correct the malicious file(s)/module(s).
- For CMSs (WordPress, Joomla!, PrestaShop, Drupal, etc.), update the CMS, plugin(s) and associated theme.
- Secure your contact forms with a Captcha.
If you are using a CMS, install only "official" plugins and themes. Update the CMS, plugins and associated theme as regularly as possible to avoid this happening again.
Once you have secured your hosting plan, click on the tabs below to view each of the 3 steps.
Go to the page, then select the web hosting plan concerned.
In this case, a purge is required to delete the spam that is waiting to be sent.
If you are the originator of the emails that caused the block, below are some examples of practices to avoid when sending an email (so that it is not immediately considered spam):
- 3 or more words in upper case in the subject of the email.
- Email with empty subject/body.
- The email only contains an image larger than 1 MB and very little text.
- The subject of the email starts with: Hi, FREE, BUY, BUYING, or similar phrasing.
- The email contains more than 70% "white space" (abuse of the "SPACE" or "ENTER" key on the keyboard).
- The font size used to write the email is extremely large.
- The text colour and the background colour are the same.
- The sender IP address (IP of your Internet access point for example) has a negative reputation with spam protection services.
- The header of the sent email does not respect the RFC email standards.
- Links in the email are incorrect.
- A URL in the email is not secure (example: a URL written as
https://, while the actual URL only exists ashttp://). - The email contains terms of a pornographic nature or similar.
- The email contains an executable (EXE, BAT, PIF, XML, XLSX or documents with macros); this applies even if the file is inside a compressed archive (.zip, .rar etc.).
If your service is still in a "spam" state, reply to the automatic email you received, specifying that you have taken the necessary measures.
Our antispam service will analyse the situation, and our support team will get back to you to explain the unblock procedure.
Sending emails using an "SMTP" script
OVHcloud provides services that you are responsible for with regard to their configuration and management. It is therefore your responsibility to ensure that they function properly.
This guide is designed to help you with common tasks. However, we recommend contacting a specialist provider if you encounter any difficulties. We will not be able to assist you. You can find more information in the Go further section of this guide.
Although we strongly recommend using PHP's "mail()" function, shared hosting allows you to send emails via a script that uses Simple Mail Transfer Protocol (SMTP). The total size of your email can not exceed 10 MB (i.e. 7/8 MB excluding encapsulation).
Emails sent with a script that uses an SMTP configuration cannot be managed and tracked from your .
If you use an OVHcloud email account, you can also use SMTPSecure with "startls" or "tls" and the Port 587. However, using SMTPSecure with "ssl" and 465 as the Port is the preferred configuration on our infrastructure.
Go further
Fix the 403 Forbidden page on your website
Restore your web hosting plan's FTP storage space
For specialised services (SEO, development, etc.), contact OVHcloud partners.
If you would like assistance using and configuring your OVHcloud solutions, please refer to our support offers.
Join our community of users.


