Mail is not working on window platform

the mail() function

Moderators: macek, egami, gesf

indiavitus
New php-forum User
New php-forum User
Posts: 7
Joined: Wed Sep 01, 2010 2:24 am

Mail is not working on window platform

Postby indiavitus » Sun Jul 03, 2011 9:52 pm

Hi,
I am using the following lines of code to send mail using php.
<?php
$to = "manojks@gmail.com";
$subject = "test mail";
$message = "Hello! This is a simple email message.";
$from = "manojks@gmail.com";
$headers = "From:" . $from;
if(mail($to,$subject,$message,$headers)){
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}

?>

But unfortunately, it is not working.
Kindly suggest me.

jorgepinho
New php-forum User
New php-forum User
Posts: 101
Joined: Tue Jul 05, 2011 5:41 am
Location: Portugal
Contact:

Re: Mail is not working on window platform

Postby jorgepinho » Wed Jul 06, 2011 10:40 am

Hi,

Do you have any error message ?

Be sure to activate all error messages

--
Jorge
Live Help on Skype: lets.talk.about.help
(languages: english, portuguese)


Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest