Update admin email to matt@puffinoffset.com
All checks were successful
Build and Push Docker Images / docker (push) Successful in 58s
All checks were successful
Build and Push Docker Images / docker (push) Successful in 58s
- Update default admin email from admin@ to matt@puffinoffset.com - Add ADMIN_EMAIL environment variable to docker-compose.yml - Add complete Email Configuration section to .env.example - Admin email receives contact form submissions and order notifications 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a23cdfe396
commit
0b66378423
10
.env.example
10
.env.example
@ -31,6 +31,16 @@ WREN_DRY_RUN=true
|
||||
# === Database Configuration ===
|
||||
DATABASE_PATH=/app/data/orders.db
|
||||
|
||||
# === Email Configuration ===
|
||||
SMTP_HOST=mail.puffinoffset.com
|
||||
SMTP_PORT=587
|
||||
SMTP_SECURE=false
|
||||
SMTP_USER=noreply@puffinoffset.com
|
||||
SMTP_PASSWORD=your_smtp_password_here
|
||||
SMTP_FROM_NAME=Puffin Offset
|
||||
SMTP_FROM_EMAIL=noreply@puffinoffset.com
|
||||
ADMIN_EMAIL=matt@puffinoffset.com
|
||||
|
||||
# ========================================
|
||||
# NOTES
|
||||
# ========================================
|
||||
|
||||
@ -45,6 +45,7 @@ services:
|
||||
- SMTP_PASSWORD=${SMTP_PASSWORD}
|
||||
- SMTP_FROM_NAME=${SMTP_FROM_NAME}
|
||||
- SMTP_FROM_EMAIL=${SMTP_FROM_EMAIL}
|
||||
- ADMIN_EMAIL=${ADMIN_EMAIL:-matt@puffinoffset.com}
|
||||
dns:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
|
||||
@ -126,7 +126,7 @@ export async function sendReceiptEmail(customerEmail, orderDetails) {
|
||||
// Send contact form email
|
||||
export async function sendContactEmail(contactData) {
|
||||
const subject = `Contact Form: ${contactData.name}`;
|
||||
const adminEmail = process.env.ADMIN_EMAIL || 'admin@puffinoffset.com';
|
||||
const adminEmail = process.env.ADMIN_EMAIL || 'matt@puffinoffset.com';
|
||||
|
||||
return await sendTemplateEmail(
|
||||
adminEmail,
|
||||
@ -152,7 +152,7 @@ export async function sendContactEmail(contactData) {
|
||||
// Send admin notification for new order
|
||||
export async function sendAdminNotification(orderDetails, customerEmail) {
|
||||
const subject = `New Order: ${orderDetails.tons} tons CO₂ - $${(orderDetails.totalAmount / 100).toFixed(2)}`;
|
||||
const adminEmail = process.env.ADMIN_EMAIL || 'admin@puffinoffset.com';
|
||||
const adminEmail = process.env.ADMIN_EMAIL || 'matt@puffinoffset.com';
|
||||
|
||||
// Check if admin notifications are enabled
|
||||
if (process.env.ADMIN_NOTIFY_ON_ORDER === 'false') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user