Skip to content

Commit

Permalink
test CF
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Jul 25, 2024
1 parent 428b3a5 commit 468ef61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/lib/admin_mailer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 468ef61

Please sign in to comment.