From ce74680d7c2324317bc06abc0333aa58eaf34520 Mon Sep 17 00:00:00 2001 From: Yik Teng Hie Date: Tue, 7 May 2024 17:20:35 +0800 Subject: [PATCH] add email notification setup --- email-notification.md | 65 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 email-notification.md diff --git a/email-notification.md b/email-notification.md new file mode 100644 index 0000000..70ad1d8 --- /dev/null +++ b/email-notification.md @@ -0,0 +1,65 @@ +# Email Notification Setup + +## Gitea +- edit `./gitea/gitea/conf/app.ini` +- test send mail from Configuration Page +- Office365 +```ini +[mailer] +ENABLED = true +FROM = mitl-noreply@mitech-ltd.com.sg +PROTOCOL = smtp+starttls +SMTP_ADDR = smtp.office365.com +SMTP_PORT = 587 +USER = mitl-noreply@mitech-ltd.com.sg +PASSWD = mypassword +IS_TLS_ENABLE = true +``` + +- Gmail +```ini +[mailer] +ENABLED = true +FROM = mitl-noreply@mitech-ltd.com.sg +PROTOCOL = smtps +SMTP_ADDR = smtp.gmail.com +SMTP_PORT = 465 +USER = mitl-noreply@gmail.com +PASSWD = mypassword +IS_TLS_ENABLE = true +``` + +## Redmine + +- edit `./config/configuration.yml` +- test sendmail by add a note on an issue +- Office 365 + +```yml +default: + email_delivery: + delivery_method: :smtp + smtp_settings: + enable_starttls_auto: true + address: "smtp.office365.com" + port: 587 + domain: "mitech-ltd.com.sg" + authentication: :login + user_name: "mitl-noreply@mitech.com.sg" + password: "mypassword" +``` + +- Gmail +```yml +default: + email_delivery: + delivery_method: :smtp + smtp_settings: + enable_starttls_auto: true + address: "smtp.gmail.com" + port: 587 + domain: "mitech-ltd.com.sg" + authentication: :plain + user_name: "mitl-noreply@gmail.com" + password: "mypassword" +```