I'm using Ubuntu OS,
I'm trying to send a mail through a program, but I'm not able to do this.
This is the program,
Plz... help me to come out of this prob.
I'm trying to send a mail through a program, but I'm not able to do this.
This is the program,
Code:
<?php
$Name = "xxx";
$email = "xxx@xxx.com";
$recipient = "xxx@xxx.com";
$mail_body = "The text for the mail...";
$subject = "Testing mail";
$header = "From: ". $Name . " <" . $email . ">\r\n";
if
(mail($recipient, $subject, $mail_body, $header))
{
echo("Message sent");
}
else{
echo("Not sent");
}
?>
Comment