עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

php mail gibberish

Featured Replies

פורסם

שלום,

יש לי בעיה בקוד לשליחת מייל דרך האתר, כאשר משתמש שולח לי מייל אני מקבל אותו בג'יבריש,

שיניתי ב charset ל- UTF-8 אבל עדיין ללא הצלחה אני מקווה שתוכלו לעזור לי, זה הקוד שאני משתמש בו:


<?php
if ($_POST["email"]<>'') {
$ToEmail = 'info@info.co.il';
$EmailSubject = 'הזמנת שולחן';
$mailheader = "From: ".$_POST["contact@blabla.co.il"]."\r\n";
$mailheader .= "Reply-To: ".$_POST["contact@blabla.co.il"]."\r\n";
$mailheader .= "Content-type: text/html; charset=utf-8\r\n";
$MESSAGE_BODY = "Name: ".$_POST["name"]." ";
$MESSAGE_BODY .= "Email: ".$_POST["email"]." ";
$MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"])." ";
mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure");
?>
Your message was sent
<?php
} else {
?>
<form action="sendmail.php" method="post">
<table width="400" border="0" cellspacing="2" cellpadding="0">
<tr>
<td width="29%" class="bodytext">Your name:</td>
<td width="71%"><input name="name" type="text" id="name" size="32"></td>
</tr>
<tr>
<td class="bodytext">Email address:</td>
<td><input name="email" type="text" id="email" size="32"></td>
</tr>
<tr>
<td class="bodytext">Comment:</td>
<td><textarea name="comment" cols="45" rows="6" id="comment" class="bodytext"></textarea></td>
</tr>
<tr>
<td class="bodytext"> </td>
<td align="left" valign="top"><input type="submit" name="Submit" value="Send"></td>
</tr>
</table>
</form>
<?php
};
?>

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.