email to me form

Problems with the Windows version of XAMPP, questions, comments, and anything related.

email to me form

Postby MUHAMMAD AJMAL » 04. September 2008 20:44

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
Assalamu Alicum,



Thank you
Regard
M.Ajmal
MUHAMMAD AJMAL
 
Posts: 7
Joined: 07. July 2008 10:23
Location: Karachi

Postby Wiedmann » 04. September 2008 21:04

You have a mailserver (like Mercury from XAMPP) running on your pc?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby MUHAMMAD AJMAL » 05. September 2008 09:18

I have just installed xampp ?

Is mercury is included in xampp?

I have not have mercury mail server.
Assalamu Alicum,



Thank you
Regard
M.Ajmal
MUHAMMAD AJMAL
 
Posts: 7
Joined: 07. July 2008 10:23
Location: Karachi

Postby Wiedmann » 05. September 2008 09:52

Is mercury is included in xampp?

Yes (but not in XAMPP Lite)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby MUHAMMAD AJMAL » 05. September 2008 18:39

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
MUHAMMAD AJMAL
 
Posts: 7
Joined: 07. July 2008 10:23
Location: Karachi

Postby Wiedmann » 06. September 2008 11:53

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)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby glitzi85 » 08. September 2008 12:52

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
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Postby MUHAMMAD AJMAL » 12. October 2008 15:05

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
MUHAMMAD AJMAL
 
Posts: 7
Joined: 07. July 2008 10:23
Location: Karachi


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 102 guests