forked from rajkumardev97/nodemailer-contact-form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
43 lines (43 loc) · 1.15 KB
/
config.yml
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
default: #required structure
submitPath: /send
submitPort: 8080
bodySizeLimit: 100kb #express body-parser->urlencoded.limit
debugRequests: false
smtp:
host: mail.host.com
port: 25
auth:
user: username
pass: password
mail:
from: "[email protected]"
to: "[email protected]"
subject: "Form Submitted"
body: | #handlebars formatting with an express "req.body" object, body has been body-parser (urlencode, json encoded) or multer (multipart) encoded
<p>Form submission</p>
<p>{{{json body}}}</p>
resultPage: | #page after submission
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Submission complete</title>
</head>
<body>
Submission Complete
</body>
</html>
errorPage: |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Something went wrong, try again later</title>
</head>
<body>
Something went wrong, try again later
</body>
</html>
development: #required structure #overrides defaults based on ENV setting
test: #required structure
production: #required structure