forked from getgrav/grav-plugin-email
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblueprints.yaml
251 lines (218 loc) · 5.6 KB
/
blueprints.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
name: Email
slug: email
type: plugin
version: 3.2.0
testing: false
description: Enables the emailing system for Grav
icon: envelope
author:
name: Team Grav
email: [email protected]
url: http://getgrav.org
keywords: plugin, email, sender
homepage: https://github.com/getgrav/grav-plugin-email
bugs: https://github.com/getgrav/grav-plugin-email/issues
license: MIT
dependencies:
- { name: grav, version: '>=1.7.32' }
- { name: form, version: '>=6.0.0' }
form:
validation: loose
fields:
enabled:
type: hidden
label: PLUGIN_ADMIN.PLUGIN_STATUS
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
mailer.engine:
type: select
label: PLUGIN_EMAIL.MAIL_ENGINE
size: medium
options:
none: PLUGIN_ADMIN.DISABLED
smtp: SMTP
sendmail: Sendmail
content_type:
type: select
label: PLUGIN_EMAIL.CONTENT_TYPE
size: medium
default: 'text/html'
options:
'text/plain': PLUGIN_EMAIL.CONTENT_TYPE_PLAIN_TEXT
'text/html': HTML
charset:
type: text
size: medium
label: PLUGIN_EMAIL.CHARSET
placeholder: PLUGIN_EMAIL.CHARSET_PLACEHOLDER
email_Defaults:
type: section
title: PLUGIN_EMAIL.EMAIL_DEFAULTS
underline: true
from:
type: email
size: medium
label: PLUGIN_EMAIL.EMAIL_FORM
placeholder: PLUGIN_EMAIL.EMAIL_FORM_PLACEHOLDER
validate:
required: true
type: email
from_name:
type: text
size: medium
label: PLUGIN_EMAIL.EMAIL_FROM_NAME
placeholder: PLUGIN_EMAIL.EMAIL_FROM_NAME_PLACEHOLDER
to:
type: email
size: medium
label: PLUGIN_EMAIL.EMAIL_TO
placeholder: PLUGIN_EMAIL.EMAIL_TO_PLACEHOLDER
multiple: true
validate:
required: true
type: email
to_name:
type: text
size: medium
label: PLUGIN_EMAIL.EMAIL_TO_NAME
placeholder: PLUGIN_EMAIL.EMAIL_TO_NAME_PLACEHOLDER
cc:
type: email
size: medium
label: PLUGIN_EMAIL.EMAIL_CC
placeholder: PLUGIN_EMAIL.EMAIL_CC_PLACEHOLDER
multiple: true
validate:
type: email
cc_name:
type: text
size: medium
label: PLUGIN_EMAIL.EMAIL_CC_NAME
placeholder: PLUGIN_EMAIL.EMAIL_CC_NAME_PLACEHOLDER
bcc:
type: email
size: medium
label: PLUGIN_EMAIL.EMAIL_BCC
placeholder: PLUGIN_EMAIL.EMAIL_BCC_PLACEHOLDER
multiple: true
validate:
type: email
reply_to:
type: email
size: medium
label: PLUGIN_EMAIL.EMAIL_REPLY_TO
placeholder: PLUGIN_EMAIL.EMAIL_REPLY_TO_PLACEHOLDER
multiple: true
validate:
type: email
reply_to_name:
type: text
size: medium
label: PLUGIN_EMAIL.EMAIL_REPLY_TO_NAME
placeholder: PLUGIN_EMAIL.EMAIL_REPLY_TO_NAME_PLACEHOLDER
body:
type: textarea
size: medium
label: PLUGIN_EMAIL.EMAIL_BODY
placeholder: PLUGIN_EMAIL.EMAIL_BODY_PLACEHOLDER
smtp_config:
type: section
title: PLUGIN_EMAIL.SMTP_CONFIGURATION
underline: true
mailer.smtp.server:
type: text
size: medium
label: PLUGIN_EMAIL.SMTP_SERVER
placeholder: PLUGIN_EMAIL.SMTP_SERVER_PLACEHOLDER
mailer.smtp.port:
type: text
size: small
label: PLUGIN_EMAIL.SMTP_PORT
placeholder: PLUGIN_EMAIL.SMTP_PORT_PLACEHOLDER
validate:
type: number
min: 1
max: 65535
mailer.smtp.encryption:
type: select
size: medium
label: PLUGIN_EMAIL.SMTP_ENCRYPTION
options:
none: PLUGIN_EMAIL.SMTP_ENCRYPTION_NONE
ssl: SSL
tls: TLS
mailer.smtp.user:
type: text
size: medium
autocomplete: 'off'
label: PLUGIN_EMAIL.SMTP_LOGIN_NAME
mailer.smtp.password:
type: password
size: medium
autocomplete: 'new-password'
label: PLUGIN_EMAIL.SMTP_PASSWORD
mailer.smtp.auth_mode:
type: text
size: medium
label: PLUGIN_EMAIL.SMTP_AUTH_MODE
sendmail_config:
type: section
title: PLUGIN_EMAIL.SENDMAIL_CONFIGURATION
underline: true
mailer.sendmail.bin:
type: text
size: medium
label: PLUGIN_EMAIL.PATH_TO_SENDMAIL
placeholder: "/usr/sbin/sendmail"
queue_section:
type: section
title: PLUGIN_EMAIL.QUEUE_TITLE
text: PLUGIN_EMAIL.QUEUE_DESC
markdown: true
underline: true
queue.enabled:
type: toggle
label: PLUGIN_EMAIL.QUEUE_ENABLED
highlight: 0
default: 0
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
queue.flush_frequency:
type: cron
label: PLUGIN_EMAIL.QUEUE_FLUSH_FREQUENCY
size: medium
help: PLUGIN_EMAIL.QUEUE_FLUSH_FREQUENCY_HELP
default: '* * * * *'
placeholder: '* * * * *'
queue.flush_msg_limit:
type: number
label: PLUGIN_EMAIL.QUEUE_FLUSH_MSG_LIMIT
size: x-small
append: PLUGIN_EMAIL.QUEUE_FLUSH_MSG_LIMIT_APPEND
queue.flush_time_limit:
type: number
label: PLUGIN_EMAIL.QUEUE_FLUSH_TIME_LIMIT
size: x-small
append: PLUGIN_EMAIL.QUEUE_FLUSH_TIME_LIMIT_APPEND
advanced_section:
type: section
title: PLUGIN_EMAIL.ADVANCED
underline: true
debug:
type: toggle
label: PLUGIN_EMAIL.DEBUG
highlight: 1
default: 0
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool