OVH's mail() function no longer works

Hello,

For a while now (since early August 2026), our PHP scripts have not been able to send e‑mail. I ran a test with the example provided in the OVH documentation and got the message "Email did not leave correctly!".

The service status is "Active" in the "Email Scripts" tab.

I have opened a ticket with OVH but have not received a response.

How can we restore this functionality?

Thanks in advance.

Attached is the example used:

<?php 

$to = "my_email_adresse@my_domaine.fr";

$subject = "Test mail PHP"; 

$content = "The body/content of the Email";

$headers = "From: Website <my_email_adresse@my_domaine.fr>\\r\\nReply-To:my_email_adresse@my_domaine.fr";

if (mail($to, $subject, $content, $headers)) 
    echo "The email has been sent successfully!";
else 
    echo "Email did not leave correctly!"; 

?>

Hello @azamparu,
What is your ticket number? I can follow up with the team to see what’s happening.
Thank you and have a nice day,
Best regards
^Jlam

Hello JLami1,

Thank you for taking my message into account.

The ticket is CS16480203 opened on 10/08/2026.

Kind regards,

AZ

Hi @azamparu,

In the scripts you have customized for each domain, can you confirm that you are the administrator of that domain in that OVHcloud account?

Hello @GabriDB ,

Yes, I am the administrator of this domain for this OVHcloud account.

Hello @azamparu

I have taken over your support request; feel free to reply so we can resolve this situation together :wink:

Astérix

Hello @Asterix ,

Thank you for handling my request.

I remain at your disposal for any further inquiries if needed.

Kind regards,

AZ

@Asterix

I just updated ticket CS16480203.

You're welcome!

@Asterix

Thank you for everything!

The problem was fixed after restarting the mail‑sending server.

Kind regards,

AZ

Glad the issue is resolved, thank you for the feedback!

:wink: