Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   PHP, PERL, MySQL, JavaScript (https://forum.antichat.xyz/forumdisplay.php?f=37)
-   -   на какой хост (https://forum.antichat.xyz/showthread.php?t=93504)

saiman 25.11.2008 21:54

на какой хост
 
Код HTML:

<html> <head> <title>HTML E-mail Send</title>
<style type="text/css"> body { font-family: Verdana, Arial,

 Helvetica, sans-serif; text-decoration: none; color:
 #000000; background-color: 5a5959; } a { font-family:
 Verdana, Arial, Helvetica, sans-serif; font-size: 10px; text-decoration: none; font-weight: bold; color: white; }
 a:visited { font-family: Verdana, Arial, Helvetica,
 sans-serif; font-size: 10px; text-decoration: none; font-weight: bold; } a:hover { font-family: Verdana, Arial,
 Helvetica, sans-serif; font-size: 10px; text-decoration: underline; font-weight: bold; color: white; } .text {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
 10px; color: #000000} </style> <body leftMargin=0
topMargin=0 marginwidth=0 marginheight=0>
<table
border=0 width=640 cellpadding=0 cellspacing=1>

<tr><td vAlign=top width=120> </td><td align=left
vAlign=top width=540>
<p> <p><table border=0
cellpadding=0 cellspacing=0 width=500>
<tr class=c3>
</tr> <tr align=left class=c2> <p align=left><font
align=center color=orange size=3 face="Verdana">
<br>
 <b>HTML E-mail Send</font></b><br><br> <font
color=orange size=1 face="Verdana">
<b>If you want to
 send E-mail to some adresses, divide them with
comas<br>(e.g.:
user@domain.com,user2@domain2.com)</b></font><br>
 <font face="verdana" color=white size=1><b> <FORM
METHOD=POST ACTION=poster.php TARGET=_top>
<br>
Target E-mail:&nbsp;&nbsp;<INPUT TYPE=text
STYLE="font-family:tahoma;font-size:7.5pt" NAME="email"
 SIZE=48 MAXLENGTH=512 VALUE="">
<br> From
(Name):&nbsp;&nbsp;<INPUT TYPE=text
STYLE="font-family:tahoma;font-size:7.5pt"
NAME="fromname" SIZE=48 MAXLENGTH=512
VALUE="Администрация Mail.Ru">
<br> From
(E-mail):&nbsp;<INPUT TYPE=text
STYLE="font-family:tahoma;font-size:7.5pt"
NAME="fromemail" SIZE=48 MAXLENGTH=512
VALUE="support@corp.mail.ru">
<br> Reply-to:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE=text STYLE="font-family:tahoma;font-size:7.5pt" NAME="reply"
 SIZE=48 MAXLENGTH=512 VALUE="">
<br>
Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;<INPUT TYPE=text
STYLE="font-family:tahoma;font-size:7.5pt"
 NAME="subject" SIZE=48 MAXLENGTH=512
VALUE="<subject>">
<br><br> Message Text
(You can use any html-tags):<br><TEXTAREA
STYLE="font-family:verdana;font-size:7.5pt"
NAME="message" ROWS=18 COLS=100 WRAP=VIRTUAL>

 <html> <body> <b>message</b> </body>
</html></TEXTAREA><br> </b></font> <p
align=center>
<INPUT
STYLE="font-family:verdana;font-size:7.5pt;"
TYPE="submit" VALUE=" SEND » " alt="Send it!">
</tr>
<tr> <br> <b><font color=orange size=1
face="Verdana">
<li>Coded by [x26]VOLAND</font></b>
</tr> </table> </body></html>

PHP код:

<html>
<head>
</head>
<body bgcolor=5a5959 text=000000 link=white vlink=orange leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>
<?
//Присваиваем данные:
$email $HTTP_POST_VARS['email'];
$reply $HTTP_POST_VARS['reply'];
$subject $HTTP_POST_VARS['subject'];
$message $HTTP_POST_VARS['message'];
$fromname $HTTP_POST_VARS['fromname'];
$fromemail $HTTP_POST_VARS['fromemail'];

//Прописываем шапку письма:
$headers 'From: '."$fromname".' <'."$fromemail".'>'."\r\n";
$headers .= "Reply-To: $reply"."\r\n";
$headers .= 'MIME-Version: 1.0'."\r\n";
$headers .= 'Content-Type: text/html'."\r\n"// Устанавливаем html-формат письма
$headers .= 'Content-Transfer-Encoding: quoted-printable'."\r\n";
//Отправляем почту
mail($email,$subject,$message,$headers);

print 
"<br><p align=center><font color=lime face=\"Verdana\"><b>E-mail has succesfully sent</b></font>";
?>
</body>
</html>

где ошибка и на какой хост лучше залить?

mr.The 25.11.2008 21:59

1) ошибка в ДНК.
2) на любой платный. на фрихостах дадеко не отошлёш.
3) подробности у автора - [x26]VOLAND


Время: 07:35