Public vals
38

petermillspaugh
sendNewsletterReminder
Val Town email subscriptions: newsletter reminder Cousin Val to @petermillspaugh/emailSubscription for emailing yourself a reminder to send your next newsletter. Since this Val is public, anyone can run it. I've commented out the function body that actually emails me to prevent anyone from spamming me, but you can fork this as a private Val to set a cron reminder.
Cron

petermillspaugh
generateNewsletterJsx
Val Town email subscriptions: generate newsletter template Cousin Val to @petermillspaugh/emailSubscription — see docs there.
Script

petermillspaugh
newsletters
Val Town email subscriptions: newsletters Cousin Val to @petermillspaugh/emailSubscription . Process for sending out a newsletter: Publish newsletter on the Web Fork and update monthly newsletter Val like january2024 Add new newsletter to this list Val sendEmailNewsletter cron val will attempt to send latest newsletter on the first of the month
Script

petermillspaugh
january2024
petemillspaugh.com clippings: #1 – January 2024 Process for sending out a newsletter: Publish newsletter on the Web Fork this val and update subject, webUrl, targetSendDate Uncomment call to insertIntoNewslettersTable Add to @petermillspaugh/newsletters list Val
Script

petermillspaugh
sendTestEmailNewsletter
Val Town email subscriptions: send test email Cousin Val to @petermillspaugh/emailSubscription — see docs there. When you're writing up an email to send to subscribers, it's helpful to send it to yourself ahead of time to proofread and see how it looks in different email clients etc.
Cron

petermillspaugh
sendEmailNewsletter
Val Town email subscriptions: send email newsletter Cousin Val to @petermillspaugh/emailSubscription — see docs there. This Val has a few layers of protection to avoid double sending. Those mechanisms feel pretty hacky, so any suggestions are welcome! Feel free to comment on the Val or submit a PR.
Cron