add email notification setup
parent
ed8343fe53
commit
ce74680d7c
@ -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"
|
||||
```
|
||||
Loading…
Reference in New Issue