ערכתי לאחרונה בתאריך 04.10.09 בשעה 18:37 בברכה, Sylver
חבר'ה אני ממש חייב עזרה!יש לי את הסקריפט הבא שעובד מצויין. פשוט, לא מסובך מדי אבל עובד מצויין.
שאני שולח ל- GMAIL אין שום בעיה עם העברית הכל מגיע פיקס. אבל שאני שולח ל- HOTMAIL או OUTLOOK מתקבל גיבריש כאילו משהו לא בסדר ב- ENCODING.
בכל מקרה, האתר שממנו נשלח הטופס לצערי מוגדר כרגע עם charset=windows-1255 ולא UTF-8. יכול להיות שאם אני אגדיר את הסקריפט להשלח עם אותו CHARSET זה יסתדר? אם כן, איך אני מכניס את זה לסקריפט? אין לי מושג מה הסינטקס או איפה צריך להכניס אותו :( בבקשה עזרה!
נ.ב.,
איך אני עושה שהמייל ישלח עם DIR="RTL"?
ניסיתי להכניס את זה במשתנה BODY עם סלאשים אבל זה לא עבד, זה התקבל כמו טקסט רגיל שהגיע המייל.
<?php // Website Contact Form Generator // http://www.tele-pro.co.uk/scripts/contact_form/ // This script is free to use as long as you // retain the credit link // get posted data into local variables $EmailFrom = Trim(stripslashes($_POST)); $EmailTo = "[email protected]"; $Subject = "Propery Propusal for King David Realty"; $SaleRent = Trim(stripslashes($_POST)); $PropType = Trim(stripslashes($_POST)); $PriceRange = Trim(stripslashes($_POST)); $RoomNum = Trim(stripslashes($_POST)); $PropSpace = Trim(stripslashes($_POST)); $PropAdd = Trim(stripslashes($_POST)); $FullName = Trim(stripslashes($_POST)); $Tel = Trim(stripslashes($_POST)); $Notes = Trim(stripslashes($_POST)); // validation $validationOK=true; if (Trim($EmailFrom)=="") $validationOK=false; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; exit; } // prepare email body text $Body = ""; $Body .= "Sale or Rent: "; $Body .= $SaleRent; $Body .= "\n"; $Body .= "\n"; $Body .= "Property Type: "; $Body .= $PropType; $Body .= "\n"; $Body .= "\n"; $Body .= "Price Range: "; $Body .= $PriceRange; $Body .= "\n"; $Body .= "\n"; $Body .= "Room Number: "; $Body .= $RoomNum; $Body .= "\n"; $Body .= "\n"; $Body .= "Property Space: "; $Body .= $PropSpace; $Body .= "\n"; $Body .= "\n"; $Body .= "Property Address: "; $Body .= $PropAdd; $Body .= "\n"; $Body .= "\n"; $Body .= "Full Name: "; $Body .= $FullName; $Body .= "\n"; $Body .= "\n"; $Body .= "Email Address: "; $Body .= $EmailFrom; $Body .= "\n"; $Body .= "\n"; $Body .= "Tel: "; $Body .= $Tel; $Body .= "\n"; $Body .= "\n"; $Body .= "Notes: "; $Body .= $Notes; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=success.htm\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; } ?>
|