Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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.

HTML mail() im Safe-Mode

Empfohlene Antworten

Veröffentlicht

Hallöchen Leute,

habe gerade versucht eine HTML-Email im PHP-Safe-Mode zu verschicken.

Das Problem:

FEHLER:

Warning: mail(): SAFE MODE Restriction in effect.

The fifth parameter is disabled in SAFE MODE.

in /www/usr10632/yourbabes.de/htdocs/inc.submits.php on line 142

$header = "Content-type: text/html; charset=iso-8859-1";

mail("$anemail","$betreffwebmaster","$koerperwebmaster\n","FROM: $absender\n","$header");
[/php]

(die anderen variablen habe ich der übersicht wegen weggelassen)

Hat jemand eine Idee, wie ich trotz Safe-Mode's eine HTML E-Mail verschicken kann?

Gruß

oscha

es wird doch sicherlich eine möglichkeit geben, dies ohne dieses elendig lange script zu bewältigen...

*EDIT*

Problem gelöst.......

CLOSE!

*EDIT*

Problem gelöst.......

CLOSE!

Wie haste es gelöst?

im PHP-Safe-Mode kann man keinen füfter Paramater in der Funktion mail() angeben.. (hatte orher im vierten das AN-Feld, und wollte im fünften die zusätzlichen header haben)

daher habe ich diesen in den vierten mit beigepackt...


$headers = "MIME-Version: 1.0\r\n";
$headers .= "From: xy - eCard <xy@xy.de>\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

mail("$anemail","$betreffwebmaster","$koerperwebmaster\n","$headers");
[/php]

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.