form contact auto reply แก้ให้หน่อยอยากให้มัน auto reply เป็น HTML

เริ่มโดย clickfive, 11 ตุลาคม 2012, 15:14:54

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

clickfive

form contact แล้วก็ตอบกลับโดย Auto reply บ้าง แก้ให้หน่อย อยากให้มัน auto reply เป็น HTML อันนี้มันเป็น TEXT อ่ะ

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body><?php

//--------------------------Set these paramaters--------------------------


$subject 'email from homepage'// Subject of email sent to you.
$emailadd '[email protected]'// Your email address. This is where the form information will be sent.
$url 'thankyou.html'// Where to redirect after form is processed.
$req '0'// Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.

// --------------------------Do not edit below this line--------------------------
$text "Results from form:\n\n"
$space ' ';
$line '
'
;
foreach (
$_POST as $key => $value)
{
if (
$req == '1')
{
if (
$value == '')
{echo 
"$key is empty";die;}
}
$j strlen($key);
if (
$j >= 99)
{echo 
"Name of form element $key cannot be longer than 99 characters";die;}
$j 99 $j;
for (
$i 1$i <= $j$i++)
{
$space .= ' ';}
$value str_replace('\n'"$line"$value);
$conc "{$key}:$space{$value}$line";
$text .= $conc;
$space ' ';
}

mail($emailadd$subject$text'From: '.$emailadd.'');

$email $_POST['email']; // use their addy instead of yours
$subject 'Thanks for the submission'// change subject
$text '
Dear client,

Thank you for your Brian Tracy Mega Guru event &quot;Double your customers and profits&quot; registration.

Our customer service staff will be in touch shortly to confirm your registration.<br />

For now, please enjoy your free ebook as our gift to you.<br />

Kind Regards,
ATD'
// change text
mail($email$subject$text'From: '.$emailadd.''); // send another one out


?>





<form method="post" action="feeback.php">

<table class="box" align="center" border="0" cellpadding="5" cellspacing="0" width="521" id="table2">
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#ffffff" width="200" height="31">Name:</td>
<td bgcolor="#ffffff" width="546" height="31" colspan="2"><input name="name" size="30" type="text"></td>
</tr>
<tr>
<td bgcolor="#ffffff" width="200">E-mail Address:</td>
<td bgcolor="#ffffff" width="301" colspan="2"><input name="email" size="30" type="text"></td>
</tr>
<tr>
<td bgcolor="#ffffff" width="200">Questions or Comments:</td>
<td bgcolor="#ffffff" width="301" colspan="2"><textarea name="message" rows="5" cols="35"></textarea></td>
</tr>
<tr>
<td colspan="3" class="smalltext" bgcolor="#ffffff">
<input value="Submit" type="submit" style="float: right"><br>
</td>
</tr>
</table>
</body>
</html>


ได้แล้วครับ แต่ๆ แนปไฟล์ไม่ได้ ปรับ สี ปรับขนาดอักษรไม่ ได้ วอนท่านเทพ  :wanwan017: :wanwan017: :wanwan017:

อยากให้ auto response เป็น html ไม่รู้ทำไง

969

articlebuilder โปรแกรมส้รางบทความภาษาอังกฤษ มีใครสนใจจะใช้ไม่ครับเปิดแชร์ให้ ใช้ได้ 1 ปี รับแค่ 2 คน จ่ายเพียงคนละ 3000 บาทใช้ได้ 1 ปีครับ จากราคาเต็มปีละ $297 สนใจ PM

เนื่องจาก Mail โดนให้ยืนยันตน ecommerce94@ฮอตเมล.com แต่ผมทิ้งเบอร์โทรที่ใช้กับเมลนี้ไปแล้วตอนนี้เลยใช้ไม่ได้ให้ติดต่อที่เมลใหม่ mybsiz@เอ้าลุค.com (outlook) นะครับ ไม่ได้ค่อยตอบ pm ให้ติดต่อผมที่ Mail ที่แจ้งเลยครับ

lukplaz


tctheworld


clickfive




clickfive

#7
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body><?php

//--------------------------Set these paramaters--------------------------


$subject 'email from homepage'// Subject of email sent to you.
$emailadd '[email protected]'// Your email address. This is where the form information will be sent.
$url 'thankyou.html'// Where to redirect after form is processed.
$req '0'// Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.

// --------------------------Do not edit below this line--------------------------
$text "Results from form:\n\n"
$space ' ';
$line '
'
;
foreach (
$_POST as $key => $value)
{
if (
$req == '1')
{
if (
$value == '')
{echo 
"$key is empty";die;}
}
$j strlen($key);
if (
$j >= 99)
{echo 
"Name of form element $key cannot be longer than 99 characters";die;}
$j 99 $j;
for (
$i 1$i <= $j$i++)
{
$space .= ' ';}
$value str_replace('\n'"$line"$value);
$conc "{$key}:$space{$value}$line";
$text .= $conc;
$space ' ';
}

mail($emailadd$subject$text'From: '.$emailadd.'');

$email $_POST['email']; // use their addy instead of yours
$subject 'Thanks for the submission'// change subject
$text '
Dear client,

Thank you for your Brian Tracy Mega Guru event &quot;Double your customers and profits&quot; registration.

Our customer service staff will be in touch shortly to confirm your registration.<br />

For now, please enjoy your free ebook as our gift to you.<br />

Kind Regards,
ATD'
// change text
mail($email$subject$text'From: '.$emailadd.''); // send another one out


?>





<form method="post" action="feeback.php">

<table class="box" align="center" border="0" cellpadding="5" cellspacing="0" width="521" id="table2">
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#ffffff" width="200" height="31">Name:</td>
<td bgcolor="#ffffff" width="546" height="31" colspan="2"><input name="name" size="30" type="text"></td>
</tr>
<tr>
<td bgcolor="#ffffff" width="200">E-mail Address:</td>
<td bgcolor="#ffffff" width="301" colspan="2"><input name="email" size="30" type="text"></td>
</tr>
<tr>
<td bgcolor="#ffffff" width="200">Questions or Comments:</td>
<td bgcolor="#ffffff" width="301" colspan="2"><textarea name="message" rows="5" cols="35"></textarea></td>
</tr>
<tr>
<td colspan="3" class="smalltext" bgcolor="#ffffff">
<input value="Submit" type="submit" style="float: right"><br>
</td>
</tr>
</table>
</body>
</html>


ได้แล้วครับ แต่ๆ แนปไฟล์ไม่ได้ ปรับ สี ปรับขนาดอักษรไม่ ได้ วอนท่านเทพ  :wanwan017: :wanwan017: :wanwan017:

อยากให้ auto response เป็น html ไม่รู้ทำไง



Jellopy

ลองยัด code html เข้าไปสิครับ  :wanwan004:

$text = '
<h1>Dear client,</h1>

<p>Thank you for your Brian Tracy Mega Guru event &quot;Double your customers and profits&quot; registration.
Our customer service staff will be in touch shortly to confirm your registration.
For now, please enjoy your free ebook as our gift to you.</p>

<h2>Kind Regards,
ATD</h2>
';