I'm new to PHP.
We have a simple mail script similar to below (done by a previous employee) and it had been working fine for some months. But suddenly, it has stopped working since yesterday and now it's my responsibility to fix this.
Code: Select all
$to = 'firstname.lastname@example.org';
$subject = 'Emailing: new clients';
$message = 'Welcome aboard';
$headers = "From:email@example.com';
I don't know from which smtp server or mail server it is sending email,but it was working fine and sending emails. We have only microsoft exchange email account configured in the outlook program.
In php.ini, smtp is set to localhost and smtp_port = 25.
let me know if you need more details.