diff options
author | zeripath <art27@cantab.net> | 2021-11-19 15:35:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-19 23:35:20 +0800 |
commit | 38347aa16f7cfb32bb984ade4518bd311d0aff12 (patch) | |
tree | b1566f8cb2a481162b799e86308eb522d51f33e1 /custom | |
parent | d4e281bc02908f5e1dda3dc4d340e2898048faef (diff) | |
download | gitea-38347aa16f7cfb32bb984ade4518bd311d0aff12.tar.gz gitea-38347aa16f7cfb32bb984ade4518bd311d0aff12.zip |
Add settings to allow different SMTP envelope from address (#17479)
* Add settings to allow different SMTP envelope from address
Sometimes it may be advisable to hide or alias the from address on an SMTP mail
envelope. This PR adds two new options to the mailer to allow setting of an overriding
from address.
Fix #17477
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.example.ini | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index 9643e396b6..233e8981cb 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -1457,6 +1457,9 @@ PATH = ;; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format ;FROM = ;; +;; Sometimes it is helpful to use a different address on the envelope. Set this to use ENVELOPE_FROM as the from on the envelope. Set to `<>` to send an empty address. +;ENVELOPE_FROM = +;; ;; Mailer user name and password ;; Please Note: Authentication is only supported when the SMTP server communication is encrypted with TLS (this can be via STARTTLS) or `HOST=localhost`. ;USER = |