Ovu skriptu mislim da sam našao negde na ES-u, pre skoro godinu dana, i do pre par meseci mi je sve radilo ok. Onda posle nekih intervencija na serverima provajdera sam počeo dobijati prazne mailove. Piše samo moja adresa i subject (zadan po defaultu). Nema ni pošiljaočeve adrese, ni samog maila.
Ako probam da pristupim direktno fajlu contactscript.php na mom sajtu, budem redirektovan na contacted.html stranu koja se pojavi kada se mail pošalje (redovnim putem..sa www.mariotomic.com/contact_me.html ), a u mailu koji zatim dobijem stoji samo jedna tačka :)
U čemu može biti problem. Voleo bih samo da prepravim postojeću skriptu da radi, jer mi zaista ne treba ništa komplikovanije :) Dobro..moožda red dva sa IP-jem i user agentom :)
Code:
<?php
// headers for the email listed below
$headers .= "From: $name <$email>\n"; // your email client will show the person's email address like normal
$headers .= "Content-Type: text/plain; charset=iso-8859-1\n"; // sets the mime type
$recipient = "[email protected]"; // enter YOUR email address here
$subject = "[world in a p.xel] Email from the site"; // this is the subject of the email
$msg = wordwrap( $msg, 1024 );
mail($recipient, $subject, stripslashes($msg), $headers); // the mail() function sends the message to you
//Once the data is entered, redirect the user to give them visual confirmation
header("location: contacted.html");
?>
<?php
// headers for the email listed below
$headers .= "From: $name <$email>\n"; // your email client will show the person's email address like normal
$headers .= "Content-Type: text/plain; charset=iso-8859-1\n"; // sets the mime type
$recipient = "[email protected]"; // enter YOUR email address here
$subject = "[world in a p.xel] Email from the site"; // this is the subject of the email
$msg = wordwrap( $msg, 1024 );
mail($recipient, $subject, stripslashes($msg), $headers); // the mail() function sends the message to you
//Once the data is entered, redirect the user to give them visual confirmation
header("location: contacted.html");
?>
Ako probam da pristupim direktno fajlu contactscript.php na mom sajtu, budem redirektovan na contacted.html stranu koja se pojavi kada se mail pošalje (redovnim putem..sa www.mariotomic.com/contact_me.html ), a u mailu koji zatim dobijem stoji samo jedna tačka :)
U čemu može biti problem. Voleo bih samo da prepravim postojeću skriptu da radi, jer mi zaista ne treba ništa komplikovanije :) Dobro..moožda red dva sa IP-jem i user agentom :)
Potpis
d520 C35 A40 S45i SL45i ME45i 3650 6600 SX1 P800
S65 P910i Wizard W810i P990i BlueAngel
6280 E61 iPhone Treo750 MioA701 KG275 iPhone3G
5000 E51 iPhone3GS Desire DesireHD E71
7110 iPhone4 Note Nexus Bold9780
100 Nexus4 Nexus5 Q10 Z3C
iPhone5C OnePlus2 S4 S7E HT70 Power5 Mate20Pro S22U Fold4 S23U
S65 P910i Wizard W810i P990i BlueAngel
6280 E61 iPhone Treo750 MioA701 KG275 iPhone3G
5000 E51 iPhone3GS Desire DesireHD E71
7110 iPhone4 Note Nexus Bold9780
100 Nexus4 Nexus5 Q10 Z3C
iPhone5C OnePlus2 S4 S7E HT70 Power5 Mate20Pro S22U Fold4 S23U