If you’re sending an email from a PHP script hosted on a Windows server you need to set “sendmail_from” using the “ini_set” function.
ini_set("sendmail_from", "email@example.com");
- Replace email@example.com with a variable or email address.
- E-mail sent from your PHP script must be sent either to or from an active email address on Ecenica Hosting account.