unable to send email

protocoles

Verified User
Joined
Mar 11, 2008
Messages
22
Hello,

I am unable to send email via PHP script. The codes I am using are:

<?php
$to = "[email protected]";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
mail($to, $subject, $body)
?>

However, when I executed these code on console it works.

Please help

Thanks in advance
 
Back
Top