diff --git a/README.md b/README.md index 2135d703..5ea442ed 100644 --- a/README.md +++ b/README.md @@ -277,7 +277,7 @@ SaaS Starter includes an admin emailer for sending yourself email notifications If you setup the admin emailer, it will email you when users create their profile or the 'Contact Us' form is submitted. You can add additional calls to sendAdminEmail() for any other events you want to monitor. -To setup, provide email SMTP credientials in your environment variables: `PRIVATE_SMTP_HOST`, `PRIVATE_SMTP_PORT`, `PRIVATE_SMTP_USER`, `PRIVATE_SMTP_PASS`. You can use any SMTP providers such as Gmail, Sendgrid, AWS SES, Resend, or Mailgun. Then set the email address to which admin emails will be sent in `PRIVATE_ADMIN_EMAIL`. +To setup, set the email address to which admin emails will be sent in the env var `PRIVATE_ADMIN_EMAIL`. That's all that's required if you host on Cloudflare Pages! If you host elsewhere, provide email SMTP credientials in your environment variables: `PRIVATE_SMTP_HOST`, `PRIVATE_SMTP_PORT`, `PRIVATE_SMTP_USER`, `PRIVATE_SMTP_PASS`. You can use any SMTP providers such as Gmail, Sendgrid, AWS SES, Resend, or Mailgun. ## Add Your Content diff --git a/src/lib/admin_mailer.ts b/src/lib/admin_mailer.ts index 652ea56b..0ddea64a 100644 --- a/src/lib/admin_mailer.ts +++ b/src/lib/admin_mailer.ts @@ -110,7 +110,8 @@ const sendAdminEmailCloudflareWorkers = async ({ }, ], from: { - email: "noreply@you_domain_here_optional.com", + // Can't spoof a lot of email addresses, so use a generic email address. + email: "noreply@your_domain_here_optional.com", }, subject: "ADMIN_MAIL: " + subject, content: [