-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.yaml
60 lines (55 loc) · 1.63 KB
/
sample.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# define accounts by giving them a name
# to be used in the tag mapping
accounts:
- name: gmail
email: account1@gmail.com
smtp:
server: smtp.gmail.com
port: 587
username: your@gmail.com
# For gmail generate an "app password" and ensure 2FA:
# https://support.google.com/mail/answer/185833?hl=en
password: your_gmail_app_password
tls: true
- name: hotmail
email: account2@hotmail.com
smtp:
server: smtp.live.com
port: 587
username: account2@hotmail.com
password: account2_password
tls: true
# map tags to messages
tags:
# tags are case-sensitive and must be unique
# fields default to empty or false
# all options example
my-tag:
# account from above
from: gmail
# list of recipients
to:
- "recipient-one@email.com"
- "recipient-two@email.com"
cc:
- "carbon-copy@email.com"
bcc:
- "blind@email.com"
include_attachment: true
# use {{ var_name }} in subject and body for templating
# available variables found here:
# https://docs.paperless-ngx.com/advanced_usage/
subject: "pmail automated delivery - {{ DOCUMENT_ID }}"
body: |
Attached file details:
- {{ DOCUMENT_FILE_NAME }}
- {{ DOCUMENT_ID }}
- {{ DOCUMENT_CREATED }}
- {{ DOCUMENT_DOWNLOAD_URL }}
# each tag can have a unique message
simple-no-attachment:
from: hotmail
to:
- "recipient@email.com"
subject: "paperless processed a fil {{ DOCUMENT_FILE_NAME }} | {{ DOCUMENT_CREATED }}"
body: "Processed {{ DOCUMENT_FILE_NAME }} | Download at: {{ DOCUMENT_DOWNLOAD_URL }}"