From 1fda947f2b77bb2fd2791f17a7725aad9de88477 Mon Sep 17 00:00:00 2001 From: Branko Kokanovic Date: Tue, 18 Dec 2018 20:43:30 +0100 Subject: [PATCH] Adding documentation for mail_smtpstreamoptions mail_smtpstreamoptions is a new parameter in config/config.php. This covers small mention of it and one example where it is useful. I also fixed removed option to send mail in one place (PHP). --- .../email_configuration.rst | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/admin_manual/configuration_server/email_configuration.rst b/admin_manual/configuration_server/email_configuration.rst index 7faf74ae2..274c236a9 100644 --- a/admin_manual/configuration_server/email_configuration.rst +++ b/admin_manual/configuration_server/email_configuration.rst @@ -122,7 +122,7 @@ Setting mail server parameters in config.php -------------------------------------------- If you prefer, you may set your mail server parameters in ``config/config.php``. -The following examples are for SMTP, PHP, Sendmail, and Qmail. +The following examples are for SMTP, Sendmail, and Qmail. SMTP ^^^^ @@ -204,6 +204,13 @@ and password and can optionally choose between the authentication types "mail_smtpname" => "username", "mail_smtppassword" => "password", +Advanced users can add additional stream options in ``config/config.php``, +which maps directly to `Swift Mailer's `_ +``streamOptions`` configuration parameter: +:: + + "mail_smtpstreamoptions" => array(), + Sendmail ^^^^^^^^ @@ -366,6 +373,20 @@ using the ``telnet`` command. 221 smtp.domain.dom closing connection Connection closed by foreign host. +**Question**: How can I send mail when using self-signed certificates if +remote SMTP server do not have options to allow this on their side? + +**Answer**: If you are having remote SMTP setup, you can try adding this +to your ``config/config.php``:: + + "mail_smtpstreamoptions" => array( + 'ssl' => array( + 'allow_self_signed' => true, + 'verify_peer' => false, + 'verify_peer_name' => false + ) + ), + Enabling debug mode -------------------