• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
stevekrouse

stevekrouse

replyEmailWithAttachment

Public
Like
replyEmailWithAttachment
Home
Code
2
README.md
E
main.ts
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
8/7/2025
Viewing readonly version of main branch: v1
View latest version
README.md

Stable Mail Summaries

At Val Town, we use a physical mail service, Stable, that receives our mail, scans it, and sends me an email with the scanned PDF. I rarely click into these emails, partly because the subject lines are always a very boring "(1) Stable document scans from IRS...". This val spices those up by sending them to ChatGPT:

This val has some useful code for packaging up pdfs to be sent to OpenAI and to be sent via @std/email.

Gmail forwarding Set-up

Stable sends these scans to my inbox. I set up a Gmail forwarding rule to forward those emails to this val. Here's how you can do that:

  1. Remix this val
  2. Optional, set a cusom email address on main.ts
  3. Set up a forwarding email address in gmail to the email address on main.ts
  4. In your val's logs, click on the confirmation link to accept forwarding mail
  1. At the top, in the search box, click the filter icon (in the right of the search box)
  2. Set the search params (ie From: mailroom@email.usestable.com) and click Create filter
  3. Check Forward it to and choose the email address of main.ts
  4. Click Create filter
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.