forked from sfbrigade/San-Francisco-in-Progress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-email.js
50 lines (50 loc) · 1.85 KB
/
example-email.js
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
module.exports = function createEmail (email, address, hearingInfo) {
return {
confirmation: {
"key": "7ZUL0_LO1EUZVpEF0FbzGw",
"message": {
"html": "<p>You are now following " + address + '</p>',
"text": "You are now following " + address,
"subject": "You are now following " + address,
"from_email": "[email protected]",
"from_name": "SF in Progress",
"to": [
{
"email": email || '[email protected]',
"name": email || '[email protected]',
"type": "to"
}
],
"headers": {
"Reply-To": "[email protected]"
},
"track_opens": null,
"track_clicks": null,
},
"async": false,
}
, announcement: {
"key": "7ZUL0_LO1EUZVpEF0FbzGw",
"message": {
"html": "<p>Upcoming public hearing for " + address + '</p>',
"text": "A public hearing is scheduled for " + address,
"subject": "A public hearing is scheduled for " + address,
"from_email": "[email protected]",
"from_name": "SF in Progress",
"to": [
{
"email": email || '[email protected]',
"name": email || '[email protected]',
"type": "to"
}
],
"headers": {
"Reply-To": "[email protected]"
},
"track_opens": null,
"track_clicks": null,
},
"async": false,
}
}
}