server-core-module 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,7 +16,7 @@ async function sendOrderConfirmation(email, name, items, totalAmount, deliveryFe
|
|
|
16
16
|
<td>₱${item.price * item.quantity}</td>
|
|
17
17
|
</tr>`).join("");
|
|
18
18
|
resend.emails.send({
|
|
19
|
-
from: "Cesar's Flower Shop 🌸 <
|
|
19
|
+
from: "Cesar's Flower Shop 🌸 <noreply@cesarsflowershop.com>",
|
|
20
20
|
to: email,
|
|
21
21
|
subject: "Order Received! 🌸",
|
|
22
22
|
html: `
|
|
@@ -47,7 +47,7 @@ async function sendOrderConfirmation(email, name, items, totalAmount, deliveryFe
|
|
|
47
47
|
async function sendOrderStatusUpdate(email, name, status) {
|
|
48
48
|
try {
|
|
49
49
|
resend.emails.send({
|
|
50
|
-
from: "Cesar's Flower Shop 🌸 <
|
|
50
|
+
from: "Cesar's Flower Shop 🌸 <noreply@cesarsflowershop.com>",
|
|
51
51
|
to: email,
|
|
52
52
|
subject: `Order ${status}! 🌸`,
|
|
53
53
|
html: `
|
|
@@ -72,7 +72,7 @@ async function sendAdminNotification(name, items, totalAmount, customerEmail, de
|
|
|
72
72
|
<td>₱${item.price * item.quantity}</td>
|
|
73
73
|
</tr>`).join("");
|
|
74
74
|
resend.emails.send({
|
|
75
|
-
from: "Cesar's Flower Shop 🌸 <
|
|
75
|
+
from: "Cesar's Flower Shop 🌸 <noreply@cesarsflowershop.com>",
|
|
76
76
|
to: process.env.ADMIN_EMAIL,
|
|
77
77
|
subject: `New Order from ${name}! 🌸`,
|
|
78
78
|
html: `
|
|
@@ -112,7 +112,7 @@ async function sendAdminNotification(name, items, totalAmount, customerEmail, de
|
|
|
112
112
|
async function sendContactEmail(name, email, phone, eventType, message) {
|
|
113
113
|
try {
|
|
114
114
|
resend.emails.send({
|
|
115
|
-
from: "Cesar's Flower Shop 🌸 <
|
|
115
|
+
from: "Cesar's Flower Shop 🌸 <noreply@cesarsflowershop.com>",
|
|
116
116
|
to: process.env.ADMIN_EMAIL,
|
|
117
117
|
subject: `New Inquiry from ${name} - ${eventType} 🌸`,
|
|
118
118
|
html: `
|
|
@@ -126,7 +126,7 @@ async function sendContactEmail(name, email, phone, eventType, message) {
|
|
|
126
126
|
`,
|
|
127
127
|
});
|
|
128
128
|
resend.emails.send({
|
|
129
|
-
from: "Cesar's Flower Shop 🌸 <
|
|
129
|
+
from: "Cesar's Flower Shop 🌸 <noreply@cesarsflowershop.com>",
|
|
130
130
|
to: email,
|
|
131
131
|
subject: `We received your message! 🌸`,
|
|
132
132
|
html: `
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ export async function sendOrderConfirmation(email: string, name: string, items:
|
|
|
15
15
|
).join("");
|
|
16
16
|
|
|
17
17
|
resend.emails.send({
|
|
18
|
-
from: "Cesar's Flower Shop 🌸 <
|
|
18
|
+
from: "Cesar's Flower Shop 🌸 <noreply@cesarsflowershop.com>",
|
|
19
19
|
to: email,
|
|
20
20
|
subject: "Order Received! 🌸",
|
|
21
21
|
html: `
|
|
@@ -47,7 +47,7 @@ export async function sendOrderStatusUpdate(email: string, name: string, status:
|
|
|
47
47
|
try {
|
|
48
48
|
|
|
49
49
|
resend.emails.send({
|
|
50
|
-
from: "Cesar's Flower Shop 🌸 <
|
|
50
|
+
from: "Cesar's Flower Shop 🌸 <noreply@cesarsflowershop.com>",
|
|
51
51
|
to: email,
|
|
52
52
|
subject: `Order ${status}! 🌸`,
|
|
53
53
|
html: `
|
|
@@ -76,7 +76,7 @@ export async function sendAdminNotification(name: string, items: any[], totalAmo
|
|
|
76
76
|
).join("");
|
|
77
77
|
|
|
78
78
|
resend.emails.send({
|
|
79
|
-
from: "Cesar's Flower Shop 🌸 <
|
|
79
|
+
from: "Cesar's Flower Shop 🌸 <noreply@cesarsflowershop.com>",
|
|
80
80
|
to: process.env.ADMIN_EMAIL!,
|
|
81
81
|
subject: `New Order from ${name}! 🌸`,
|
|
82
82
|
html: `
|
|
@@ -118,7 +118,7 @@ export async function sendContactEmail(name: string, email: string, phone: strin
|
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
resend.emails.send({
|
|
121
|
-
from: "Cesar's Flower Shop 🌸 <
|
|
121
|
+
from: "Cesar's Flower Shop 🌸 <noreply@cesarsflowershop.com>",
|
|
122
122
|
to: process.env.ADMIN_EMAIL!,
|
|
123
123
|
subject: `New Inquiry from ${name} - ${eventType} 🌸`,
|
|
124
124
|
html: `
|
|
@@ -133,7 +133,7 @@ export async function sendContactEmail(name: string, email: string, phone: strin
|
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
resend.emails.send({
|
|
136
|
-
from: "Cesar's Flower Shop 🌸 <
|
|
136
|
+
from: "Cesar's Flower Shop 🌸 <noreply@cesarsflowershop.com>",
|
|
137
137
|
to: email,
|
|
138
138
|
subject: `We received your message! 🌸`,
|
|
139
139
|
html: `
|