Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#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)

comment:1 by Volker Strähle, 5 years ago

   /**
     * 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.


Last edited 5 years ago by Torsten Riemer (previous) (diff)

comment:2 by Gerhard Waldemair, 5 years ago

das ist doch bereits per autoinclude möglich:

/includes/extra/php_mail/sendmailoptions.php

<?php
  $mail->UseSendmailOptions = false;
?>

comment:3 by Volker Strähle, 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.

in reply to:  2 comment:4 by Torsten Riemer, 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.

comment:5 by Gerhard Waldemair, 5 years ago

Resolution: fixed
Status: newclosed

In 13145:

fix #1939 - option for sendmail

comment:6 by Gerhard Waldemair, 5 years ago

In 13146:

fix #1939 - option for sendmail

comment:7 by Gerhard Waldemair, 5 years ago

In 13147:

fix #1939 - option for sendmail

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.