free flash templates
free flash templates menu free css & photoshop templates menu free flash animation

PDA

View Full Version : [SOLVED] Problem to send email


sss
06-23-2009, 10:14 AM
when i try to send email ith ur template 7 it shows this......


\r\n"; $headers.='Content-type: text/html; charset=utf-8'; mail($your_email, $_POST['subject'], " Contact Message

Name : ".$_POST['name']."
Email : ".$_POST['email']."
Telephone : ".$_POST['telephone']."

Subject : ".$_POST['subject']."
Message :
".$_POST['message']."
" , $headers); header("Location: ./index.htm|?page=_contact_message.htm"); ?>



plz resolve this prob as soon as possible....and second thing is that i'm trying to run it on the localhost....

dylan
06-23-2009, 09:15 PM
Hello

You must upload your template to internet.

sss
06-24-2009, 07:32 AM
if it not work on the localhost...

how can i make sure that it work on the internet...

plz solve my problem as soon as possible....

freenicetemplates
06-24-2009, 10:16 AM
Dylan is right. It doeasn't work because you don't have php installed on your computer. Just upload your website on your web host and it should work. Most hosting plans support php language.

sss
06-24-2009, 12:00 PM
Thanks for suggestion...but i try it on php server(APACHE 2.2). But still it doesn't work...

If any server configuration is required, plz tell me some step so that it work....

sss
06-24-2009, 12:07 PM
after installing php server(apache 2.2) now it shows the coding page.....


<?php

$your_email = "piyu@gmail.com";

$headers= "From: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers.='Content-type: text/html; charset=utf-8';
mail($your_email, $_POST['subject'], "
<html>
<head>
<title>Contact Message</title>
</head>
<body>
Contact Message<br><br>
Name : ".$_POST['name']."<br>
Email : ".$_POST['email']."<br>
Telephone : ".$_POST['telephone']."<br><br>
Subject : ".$_POST['subject']."<br>
Message : <br>".$_POST['message']."<br>
</body>
</html>" , $headers);
header("Location: ./index.htm|?page=_contact_message.htm");
?>


plz help me out...

freenicetemplates
06-24-2009, 01:46 PM
I think you have a problem in your installation of PHP. Furthermore you need mail server to send mails. Just upload your website on your web host and it should work.

sss
06-24-2009, 08:44 PM
if any possible way to solve this problem in localhost then plz reply as soon as possible...

i try it on php server but still it doesn't work...if any configuration is required on php server and for mail server plz reply with full step.

plz help me out...

dylan
06-24-2009, 10:02 PM
Dear SSS

If you upload site to ULR 100% this working.
send URL so freenice template and other people help you.:)

Regards