mirror of
https://github.com/openvk/chandler.git
synced 2024-11-15 03:31:12 +03:00
Include additional email configuration fields
`email.user` can be set if the sending address is not your SMTP username all mail is being sent in plaintext SMTP unless `email.ssl` is set to true
This commit is contained in:
parent
b8fcf3d8e9
commit
46bb7bf0db
1 changed files with 4 additions and 4 deletions
|
@ -28,8 +28,8 @@ class Email
|
||||||
CHANDLER_ROOT_CONF["email"]["postmark"]["stream"]
|
CHANDLER_ROOT_CONF["email"]["postmark"]["stream"]
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$transport = new Swift_SmtpTransport(CHANDLER_ROOT_CONF["email"]["host"], CHANDLER_ROOT_CONF["email"]["port"], "ssl");
|
$transport = new Swift_SmtpTransport(CHANDLER_ROOT_CONF["email"]["host"], CHANDLER_ROOT_CONF["email"]["port"], CHANDLER_ROOT_CONF["email"]["ssl"] ? "ssl" : NULL);
|
||||||
$transport->setUsername(CHANDLER_ROOT_CONF["email"]["addr"]);
|
$transport->setUsername(CHANDLER_ROOT_CONF["email"]["user"] ?? CHANDLER_ROOT_CONF["email"]["addr"]);
|
||||||
$transport->setPassword(CHANDLER_ROOT_CONF["email"]["pass"]);
|
$transport->setPassword(CHANDLER_ROOT_CONF["email"]["pass"]);
|
||||||
|
|
||||||
$message = new Swift_Message($subject);
|
$message = new Swift_Message($subject);
|
||||||
|
|
Loading…
Reference in a new issue