Page 1 of 1

email to me form

PostPosted: 04. September 2008 20:44
by MUHAMMAD AJMAL
I am using Xampp and i am trying to make "email to me form"

would any one tell me that how much alteration require in php.ini ?

Is php.ini exist in Php directory?

Is any other file required alteration as well ?

i have been made two files as below
file no. 1 : is

feedback.html

<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="author" content="mazuki">

<title>mail to me at ajmal-mcse@hotmail.com</title>
</head>

<body>

<form method="post" action="sendmail.php">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>

</body>
</html>


.............................file no.2..........is ................................

<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

mail( "ajmal-mcse@smskehani.0fees.net", "Feedback Form Results",
$message, "From: $email" );
header( "Location: localhost" );
?>

............... error which i have been observed is ..................
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\x\htdocs\sendmail.php on line 6

Warning: Cannot modify header information - headers already sent by (output started at C:\x\htdocs\sendmail.php:6) in C:\x\htdocs\sendmail.php on line 7
------------------------------------------.kindly explain me step by step what should i do to resolve this error ... at localhost email to me form ... as i am using win xp ,and xampp .

thanks

PostPosted: 04. September 2008 21:04
by Wiedmann
You have a mailserver (like Mercury from XAMPP) running on your pc?

PostPosted: 05. September 2008 09:18
by MUHAMMAD AJMAL
I have just installed xampp ?

Is mercury is included in xampp?

I have not have mercury mail server.

PostPosted: 05. September 2008 09:52
by Wiedmann
Is mercury is included in xampp?

Yes (but not in XAMPP Lite)

PostPosted: 05. September 2008 18:39
by MUHAMMAD AJMAL
YES I HAVE MERCURY NOW KINDLY GIVE ME ANSWER OF MY FIRST POST IN THIS TOPIEC "EMAIL TO ME FORM " ?

IN WHICH I GIVE YOU 2 FILES CODING AND PROBLEM WHICH OCCURED AFTER DEBUGING . KINDLY SOLVE MY PROBLEM ?

THANK YOU

PostPosted: 06. September 2008 11:53
by Wiedmann
YES I HAVE MERCURY
...
IN WHICH I GIVE YOU 2 FILES CODING

MUHAMMAD AJMAL wrote:Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\x\htdocs\sendmail.php on line 6

Mercury is not running (or the connection is blocked from a firewall)

PostPosted: 08. September 2008 12:52
by glitzi85
MUHAMMAD AJMAL wrote:YES I HAVE MERCURY NOW KINDLY GIVE ME ANSWER OF MY FIRST POST IN THIS TOPIEC "EMAIL TO ME FORM " ?

IN WHICH I GIVE YOU 2 FILES CODING AND PROBLEM WHICH OCCURED AFTER DEBUGING . KINDLY SOLVE MY PROBLEM ?

THANK YOU

WTF? Did you pay anything to get Support from this Board? Writing in capitals means yelling, so why do you yell at somebody who want's to help you?

I admire Wiedmann that he answered you, i just would ignore you!

glitzi

PostPosted: 12. October 2008 15:05
by MUHAMMAD AJMAL
Dear friend,

Yes i have mercury now kindly give me answer of my first post in this topiec "email to me form " ?

In which i give you 2 files coding and problem which occured after debuging . Kindly solve my problem ?

Thank you