Skip to content

Commit ba57f7e

Browse files
committed
Revert "fix(firestore-send-email) restore headers support (#2463)"
This reverts commit f7fd923.
1 parent 1c828d1 commit ba57f7e

4 files changed

Lines changed: 0 additions & 51 deletions

File tree

firestore-send-email/CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
## Version 0.2.4
22

3-
fix: add missing 'headers' field to the mailOptions interface
4-
5-
docs: update documentation to include 'headers' field
6-
73
fix: TTL expire type "week" fixed (#2455)
84

95
## Version 0.2.3

firestore-send-email/PREINSTALL.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,6 @@ You can also optionally configure this extension to render emails using [Handleb
1818

1919
When you configure this extension, you'll need to supply your **SMTP credentials for mail delivery**. Note that this extension is for use with bulk email service providers, like SendGrid, Mailgun, etc.
2020

21-
#### Using custom headers
22-
23-
You can add custom headers to your emails by including a `headers` field in the document you add to the Firestore collection. The `headers` field should be an object where each key is the header name and the value is the header value.
24-
25-
## Example JSON with Custom Headers:
26-
```json
27-
{
28-
"to": ["example@example.com"],
29-
"message": {
30-
"subject": "Test Email with Custom Headers",
31-
"text": "This is a test email to see if custom headers work.",
32-
"html": "<strong>This is a test email to see if custom headers work.</strong>"
33-
},
34-
"headers": {
35-
"X-Custom-Header": "CustomValue",
36-
"X-Another-Header": "AnotherValue",
37-
}
38-
}
39-
```
40-
41-
Add this document to the Firestore mail collection to send an email with custom headers.
42-
You can even include headers like 'List-Unsubscribe' to allow recipients to unsubscribe from your emails.
43-
4421
#### Firestore-Send-Email: SendGrid Categories
4522

4623
When using SendGrid (`SMTP_CONNECTION_URI` includes `sendgrid.net`), you can assign categories to your emails.

firestore-send-email/README.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,6 @@ You can also optionally configure this extension to render emails using [Handleb
2626

2727
When you configure this extension, you'll need to supply your **SMTP credentials for mail delivery**. Note that this extension is for use with bulk email service providers, like SendGrid, Mailgun, etc.
2828

29-
#### Using custom headers
30-
31-
You can add custom headers to your emails by including a `headers` field in the document you add to the Firestore collection. The `headers` field should be an object where each key is the header name and the value is the header value.
32-
33-
## Example JSON with Custom Headers:
34-
```json
35-
{
36-
"to": ["example@example.com"],
37-
"message": {
38-
"subject": "Test Email with Custom Headers",
39-
"text": "This is a test email to see if custom headers work.",
40-
"html": "<strong>This is a test email to see if custom headers work.</strong>"
41-
},
42-
"headers": {
43-
"X-Custom-Header": "CustomValue",
44-
"X-Another-Header": "AnotherValue",
45-
}
46-
}
47-
```
48-
49-
Add this document to the Firestore mail collection to send an email with custom headers.
50-
You can even include headers like 'List-Unsubscribe' to allow recipients to unsubscribe from your emails.
51-
5229
#### Firestore-Send-Email: SendGrid Categories
5330

5431
When using SendGrid (`SMTP_CONNECTION_URI` includes `sendgrid.net`), you can assign categories to your emails.

firestore-send-email/functions/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ async function deliver(ref: DocumentReference): Promise<void> {
173173
subject: payload.message?.subject,
174174
text: payload.message?.text,
175175
html: payload.message?.html,
176-
headers: payload?.headers,
177176
attachments: payload.message?.attachments,
178177
categories: payload.categories,
179178
templateId: payload.sendGrid?.templateId,

0 commit comments

Comments
 (0)