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!";
?>