<selectoptions><![CDATA[php:wcf.acp.option.mail_send_method.php
smtp:wcf.acp.option.mail_send_method.smtp
debug:wcf.acp.option.mail_send_method.debug]]></selectoptions>
- <enableoptions><![CDATA[php:mail_use_f_param,!mail_debug_logfile_path,!mail_smtp_host,!mail_smtp_port,!mail_smtp_user,!mail_smtp_password
-smtp:!mail_debug_logfile_path,!mail_use_f_param,mail_smtp_host,mail_smtp_port,mail_smtp_user,mail_smtp_password
-debug:mail_debug_logfile_path,!mail_use_f_param,!mail_smtp_host,!mail_smtp_port,!mail_smtp_user,!mail_smtp_password]]></enableoptions>
- </option>
- <option name="mail_debug_logfile_path">
- <categoryname>general.mail.send</categoryname>
- <optiontype>text</optiontype>
+ <enableoptions><![CDATA[php:mail_use_f_param,!mail_smtp_host,!mail_smtp_port,!mail_smtp_user,!mail_smtp_password
+smtp:!mail_use_f_param,mail_smtp_host,mail_smtp_port,mail_smtp_user,mail_smtp_password
+debug:!mail_use_f_param,!mail_smtp_host,!mail_smtp_port,!mail_smtp_user,!mail_smtp_password]]></enableoptions>
</option>
<option name="mail_smtp_host">
<categoryname>general.mail.send</categoryname>
<categoryname>general.mail.send</categoryname>
<optiontype>boolean</optiontype>
</option>
- <option name="mail_use_formatted_address">
- <categoryname>general.mail.send</categoryname>
- <optiontype>boolean</optiontype>
- </option>
<!-- /general.mail.send -->
<!-- general.cache -->
<option name="cache_source_memcached_use_pconnect" />
<option name="http_gzip_level" />
<option name="enable_pluginstore_widget" />
+ <option name="mail_use_formatted_address" />
+ <option name="mail_debug_logfile_path" />
</delete>
</data>
{if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
</small>
{/if}
+ {* TODO: Add field for Human readable name for new mail system *}
<small>{lang}wcf.acp.user.sendMail.from.description{/lang}</small>
</dd>
</dl>
{/if}
</small>
{/if}
+ {* TODO: Add field for Human readable name for new mail system *}
<small>{lang}wcf.acp.user.sendMail.from.description{/lang}</small>
</dd>
</dl>
$this->userIDs = array_keys($users);
}
- if (MAIL_USE_FORMATTED_ADDRESS) {
- $this->from = MAIL_FROM_NAME.' <'.MAIL_FROM_ADDRESS.'>';
- }
- else {
- $this->from = MAIL_FROM_ADDRESS;
- }
+ $this->from = MAIL_FROM_ADDRESS;
}
if (!empty($this->userIDs)) {
$this->username = $username;
$this->password = $password;
+ // TODO: Add option in ACP for STARTTLS
switch ($starttls) {
case 'none':
case 'may':
*/
public function sendMail(Mail $mail) {
if ($this->log === null) {
- $logFilePath = '';
- if (MAIL_DEBUG_LOGFILE_PATH) {
- $logFilePath = FileUtil::addTrailingSlash(MAIL_DEBUG_LOGFILE_PATH);
- }
- else {
- $logFilePath = WCF_DIR . 'log/';
- }
-
+ $logFilePath = WCF_DIR . 'log/';
$this->log = new File($logFilePath . 'mail.log', 'ab');
}
* @return string
*/
public static function buildAddress($name, $email, $encodeName = true) {
- if (!empty($name) && MAIL_USE_FORMATTED_ADDRESS) {
- if ($encodeName) $name = self::encodeMIMEHeader($name);
- if (!preg_match('/^[a-z0-9 ]*$/i', $name)) return '"'.str_replace('"', '\"', $name).'" <'.$email.'>';
- else return $name . ' <'.$email.'>';
- }
return $email;
}
<item name="wcf.acp.option.log_ip_address.description"><![CDATA[Aktiviert die Speicherung von IP-Adressen der Benutzer in z.B. Sitzungen, Benutzerprofilen, Forenbeiträgen.]]></item>
<item name="wcf.acp.option.mail_admin_address"><![CDATA[Administrator-Adresse]]></item>
<item name="wcf.acp.option.mail_admin_address.description"><![CDATA[E-Mail-Adresse des Administrators]]></item>
- <item name="wcf.acp.option.mail_debug_logfile_path"><![CDATA[Debug Logfile-Pfad]]></item>
<item name="wcf.acp.option.mail_from_address"><![CDATA[Absender-Adresse]]></item>
<item name="wcf.acp.option.mail_from_address.description"><![CDATA[Absender-Adresse für automatisch generierte E-Mails]]></item>
<item name="wcf.acp.option.mail_from_name"><![CDATA[Absender-Name]]></item>
<item name="wcf.acp.option.mail_smtp_user"><![CDATA[SMTP-Benutzer]]></item>
<item name="wcf.acp.option.mail_use_f_param"><![CDATA[„-f“ Parameter verwenden]]></item>
<item name="wcf.acp.option.mail_use_f_param.description"><![CDATA[Manche Server benötigen den „-f“ Parameter beim Versenden von E-Mails. Falls Sie Probleme mit dem Versand von E-Mails haben, aktivieren Sie diese Einstellung.]]></item>
- <item name="wcf.acp.option.mail_use_formatted_address"><![CDATA[Formatierte E-Mail-Adressen verwenden]]></item>
- <item name="wcf.acp.option.mail_use_formatted_address.description"><![CDATA[Absender- und Empfänger-Adressen werden in folgendes Format gebracht: „Name <email@example.com>“. Diese Funktion wird nicht von allen Mailservern unterstützt und sollte daher bei Problemen abgeschaltet werden.]]></item>
<item name="wcf.acp.option.meta_description"><![CDATA[Meta Description]]></item>
<item name="wcf.acp.option.meta_keywords"><![CDATA[Meta Keywords]]></item>
<item name="wcf.acp.option.module_master_password"><![CDATA[Hauptkennwort aktivieren]]></item>
<item name="wcf.acp.user.sendMail.all"><![CDATA[E-Mail an alle Benutzer senden]]></item>
<item name="wcf.acp.user.sendMail.enableHTML"><![CDATA[E-Mail als HTML versenden]]></item>
<item name="wcf.acp.user.sendMail.from"><![CDATA[Absender]]></item>
- <item name="wcf.acp.user.sendMail.from.description"><![CDATA[Hier können Sie die E-Mail-Adresse des Absenders definieren.{if MAIL_USE_FORMATTED_ADDRESS} Es ist auch folgendes Format möglich:{/if}<br />
-{if MAIL_USE_FORMATTED_ADDRESS}<em>Absender Name <email@example.com></em><br />{/if}
+ <item name="wcf.acp.user.sendMail.from.description"><![CDATA[Hier können Sie die E-Mail-Adresse des Absenders definieren.<br />
Wenn Sie unter <em>System -> Optionen -> Allgemein -> E-Mails</em> alles ausgefüllt haben, wird dieses Feld automatisch ausgefüllt. Sollten Sie E-Mails per SMTP senden, so achten Sie darauf, dass die E-Mail-Adresse des Absenders auch vom Server akzeptiert werden muss.]]></item>
<item name="wcf.acp.user.sendMail.group"><![CDATA[E-Mail an Gruppenmitglieder senden]]></item>
<item name="wcf.acp.user.sendMail.groups"><![CDATA[E-Mail an die Mitglieder folgender Benutzergruppen senden]]></item>
<item name="wcf.acp.option.log_ip_address.description"><![CDATA[Stores IP addresses for user-generated content, e.g. sessions, profiles or forum posts.]]></item>
<item name="wcf.acp.option.mail_admin_address"><![CDATA[Administrator]]></item>
<item name="wcf.acp.option.mail_admin_address.description"><![CDATA[Administrator’s email address]]></item>
- <item name="wcf.acp.option.mail_debug_logfile_path"><![CDATA[Debug Log Filename]]></item>
<item name="wcf.acp.option.mail_from_address"><![CDATA[Sender Email]]></item>
<item name="wcf.acp.option.mail_from_address.description"><![CDATA[Email used as a sender for all generated emails]]></item>
<item name="wcf.acp.option.mail_from_name"><![CDATA[Sender Name]]></item>
<item name="wcf.acp.option.mail_smtp_user"><![CDATA[SMTP Username]]></item>
<item name="wcf.acp.option.mail_use_f_param"><![CDATA[Use “-f” parameter]]></item>
<item name="wcf.acp.option.mail_use_f_param.description"><![CDATA[Some servers require the “-f” parameter to send emails. Enable this option if you have any trouble sending emails.]]></item>
- <item name="wcf.acp.option.mail_use_formatted_address"><![CDATA[Use formatted email address]]></item>
- <item name="wcf.acp.option.mail_use_formatted_address.description"><![CDATA[Sender and receiver addresses will be converted into “Name <email@example.com>”. This option is not supported by most mail-servers, try turning it off if you experience any issues.]]></item>
<item name="wcf.acp.option.meta_description"><![CDATA[Meta Description]]></item>
<item name="wcf.acp.option.meta_keywords"><![CDATA[Meta Keywords]]></item>
<item name="wcf.acp.option.module_master_password"><![CDATA[Enable master password]]></item>
<item name="wcf.acp.user.sendMail.all"><![CDATA[Send email to all users]]></item>
<item name="wcf.acp.user.sendMail.enableHTML"><![CDATA[Enable HTML for email]]></item>
<item name="wcf.acp.user.sendMail.from"><![CDATA[Sender]]></item>
- <item name="wcf.acp.user.sendMail.from.description"><![CDATA[Specify the sender’s email address.{if MAIL_USE_FORMATTED_ADDRESS} It is possible to use the following format:{/if}<br />
-{if MAIL_USE_FORMATTED_ADDRESS}<em>Sender Name <email@example.com></em><br />{/if}
+ <item name="wcf.acp.user.sendMail.from.description"><![CDATA[Specify the sender’s email address.<br />
You can define the default sender in <em>System -> Options -> General -> Emails</em>. The sender’s email must be known to the server if using SMTP, otherwise it would be rejected.]]></item>
<item name="wcf.acp.user.sendMail.group"><![CDATA[Email to user group]]></item>
<item name="wcf.acp.user.sendMail.groups"><![CDATA[Send email to members of the following user groups]]></item>