From: Tim Düsterhus Date: Sun, 21 Jun 2015 19:59:08 +0000 (+0200) Subject: Support “-f” if PhpEmailTransport is used X-Git-Tag: 3.0.0_Beta_1~2249^2~2^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d668490144497ee6414c7f95bf5a09aca44155ec;p=GitHub%2FWoltLab%2FWCF.git Support “-f” if PhpEmailTransport is used --- diff --git a/com.woltlab.wcf/option.xml b/com.woltlab.wcf/option.xml index 30907a18a7..787078d03d 100644 --- a/com.woltlab.wcf/option.xml +++ b/com.woltlab.wcf/option.xml @@ -820,6 +820,7 @@ debug:!mail_use_f_param,!mail_smtp_host,!mail_smtp_port,!mail_smtp_user,!mail_sm diff --git a/wcfsetup/install/files/lib/system/email/transport/PhpEmailTransport.class.php b/wcfsetup/install/files/lib/system/email/transport/PhpEmailTransport.class.php index 6e538283de..6b032b282c 100644 --- a/wcfsetup/install/files/lib/system/email/transport/PhpEmailTransport.class.php +++ b/wcfsetup/install/files/lib/system/email/transport/PhpEmailTransport.class.php @@ -39,7 +39,6 @@ class PhpEmailTransport implements EmailTransport { return implode(': ', $item); }, $headers)); - // TODO: -f flag - mail($envelopeTo->getAddress(), $email->getSubject(), StringUtil::unifyNewlines($email->getBodyString()), $headers); + mail($envelopeTo->getAddress(), $email->getSubject(), StringUtil::unifyNewlines($email->getBodyString()), $headers, '-f'.$email->getSender()->getAddress()); } } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 12ba5abf46..01debcf5cb 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -789,7 +789,7 @@ - + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 7512e9f782..60ee124791 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -788,7 +788,7 @@ Examples for medium ID detection: - +