<minvalue>0</minvalue>
<maxvalue>65535</maxvalue>
</option>
+ <option name="mail_smtp_starttls">
+ <categoryname>general.mail.send</categoryname>
+ <optiontype>radioButton</optiontype>
+ <defaultvalue>may</defaultvalue>
+ <selectoption><selectoptions><![CDATA[none:wcf.acp.option.mail_smtp_starttls.none
+may:wcf.acp.option.mail_smtp_starttls.may
+encrypt:wcf.acp.option.mail_smtp_starttls.encrypt]]></selectoptions></selectoptions>
+ </option>
<option name="mail_smtp_user">
<categoryname>general.mail.send</categoryname>
<optiontype>text</optiontype>
* @param string $password corresponding password
* @param string $starttls one of 'none', 'may' and 'encrypt'
*/
- public function __construct($host = MAIL_SMTP_HOST, $port = MAIL_SMTP_PORT, $username = MAIL_SMTP_USER, $password = MAIL_SMTP_PASSWORD, $starttls = 'may') {
+ public function __construct($host = MAIL_SMTP_HOST, $port = MAIL_SMTP_PORT, $username = MAIL_SMTP_USER, $password = MAIL_SMTP_PASSWORD, $starttls = MAIL_SMTP_STARTTLS) {
$this->host = $host;
$this->port = $port;
$this->username = $username;
$this->password = $password;
- // TODO: Add option in ACP for STARTTLS
switch ($starttls) {
case 'none':
case 'may':
<item name="wcf.acp.option.mail_signature"><![CDATA[Signatur]]></item>
<item name="wcf.acp.option.mail_signature.description"><![CDATA[Die Signatur wird an jede automatisch generierte E-Mail angehängt.]]></item>
<item name="wcf.acp.option.mail_smtp_host"><![CDATA[SMTP-Server]]></item>
- <item name="wcf.acp.option.mail_smtp_password"><![CDATA[SMTP-Kennwort]]></item>
<item name="wcf.acp.option.mail_smtp_port"><![CDATA[SMTP-Port]]></item>
+ <item name="wcf.acp.option.mail_smtp_starttls"><![CDATA[SMTP-Verschlüsselung]]></item>
+ <item name="wcf.acp.option.mail_smtp_starttls.none"><![CDATA[Deaktivieren]]></item>
+ <item name="wcf.acp.option.mail_smtp_starttls.may"><![CDATA[Wenn unterstützt]]></item>
+ <item name="wcf.acp.option.mail_smtp_starttls.encrypt"><![CDATA[Erzwingen]]></item>
+ <item name="wcf.acp.option.mail_smtp_starttls.description"><![CDATA[Diese Einstellung steuert die Verwendung von „STARTTLS“. Deaktivieren Sie diese Option, wenn Sie E-Mails über SSL (Port 465) versenden!]]></item>
<item name="wcf.acp.option.mail_smtp_user"><![CDATA[SMTP-Benutzer]]></item>
+ <item name="wcf.acp.option.mail_smtp_password"><![CDATA[SMTP-Kennwort]]></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[Der „-f“-Parameter sorgt bei der PHP-Versandmethode dafür, dass der korrekte Absender gesetzt wird. Diese Einstellung wird möglicherweise nicht von jedem Server unterstützt. Probieren Sie in diesem Falle die Option zu deaktivieren.]]></item>
<item name="wcf.acp.option.meta_description"><![CDATA[Meta Description]]></item>
<item name="wcf.acp.option.mail_signature"><![CDATA[Signature]]></item>
<item name="wcf.acp.option.mail_signature.description"><![CDATA[Signature will be appended to every message.]]></item>
<item name="wcf.acp.option.mail_smtp_host"><![CDATA[SMTP Server]]></item>
- <item name="wcf.acp.option.mail_smtp_password"><![CDATA[SMTP Password]]></item>
<item name="wcf.acp.option.mail_smtp_port"><![CDATA[SMTP Port]]></item>
+ <item name="wcf.acp.option.mail_smtp_starttls"><![CDATA[SMTP Encryption]]></item>
+ <item name="wcf.acp.option.mail_smtp_starttls.none"><![CDATA[Disabled]]></item>
+ <item name="wcf.acp.option.mail_smtp_starttls.may"><![CDATA[If supported]]></item>
+ <item name="wcf.acp.option.mail_smtp_starttls.encrypt"><![CDATA[Required]]></item>
+ <item name="wcf.acp.option.mail_smtp_starttls.description"><![CDATA[This option controls the usage of “STARTTLS”. Disable it, if you are using SSL (port 465)!]]></item>
<item name="wcf.acp.option.mail_smtp_user"><![CDATA[SMTP Username]]></item>
+ <item name="wcf.acp.option.mail_smtp_password"><![CDATA[SMTP Password]]></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[The “-f” parameter sets the proper sender of the email if the PHP send method is used. This parameter may not be supported by every server. Try disabling it, if you have trouble sending emails.]]></item>
<item name="wcf.acp.option.meta_description"><![CDATA[Meta Description]]></item>