#1939 closed Bug/Fehler (fixed)
PHPMailer nicht ausreichend eintstellbar
| Reported by: | Volker Strähle | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.6.0 |
| Component: | Admin | Version: | 2.0.5.1 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Beim Hoser one.com findet sich im Log der folgende Fehler:
mail(): Policy restriction in effect. The fifth parameter is disabled on this system
Das betriff Zeile 800 in phpmailer.php:
//Calling mail() with null params breaks
if (!$this->UseSendmailOptions or null === $params) {
$result = @mail($to, $subject, $body, $header);
} else {
$result = @mail($to, $subject, $body, $header, $params);
}
Die Variable UseSendmailOptions kann nur hard-codiert geändert werden.
Sollte ggf. in den Maileinstellungen im Backend änderbar sein.
Attachments (0)
Change History (7)
follow-up: 4 comment:2 by , 5 years ago
das ist doch bereits per autoinclude möglich:
/includes/extra/php_mail/sendmailoptions.php
<?php $mail->UseSendmailOptions = false; ?>
comment:3 by , 5 years ago
Das findet kein normaler Anwender. Bei einer Änderung des Mailservers oder Umzug des Servers waiss doch keiner ob die Datei dann weg kann.
comment:4 by , 5 years ago
Der Hinweis von Gerhard bezog sich nur auf folgende Aussage von dir:
Replying to webald:
[...]
Die Variable UseSendmailOptions kann nur hard-codiert geändert werden.
[...]
Und das hat er damit widerlegt:
Replying to GTB:
das ist doch bereits per autoinclude möglich:
/includes/extra/php_mail/sendmailoptions.php
<?php $mail->UseSendmailOptions = false; ?>
Für die Shopbetreiber werden wir dafür noch einen Config-Schalter bauen.

/** * Whether mail() uses a fully sendmail-compatible MTA. * One which supports sendmail's "-oi -f" options. * * @var bool */ public $UseSendmailOptions = true;$UseSendmailOptions muss dort auf false. Ich würde vorschlagen das über die Maileinstellungen bei den Email-Optionen zu lösen.