petermillspaugh-emailcoursecreator.web.val.run
  • petermillspaugh avatar
    markLessonComplete
    @petermillspaugh
    An interactive, runnable TypeScript val by petermillspaugh
    Script
  • petermillspaugh avatar
    lessons
    @petermillspaugh
    An interactive, runnable TypeScript val by petermillspaugh
    Script
  • petermillspaugh avatar
    upsertStudent
    @petermillspaugh
    Forked from petermillspaugh/upsertEmailSubscriber
    Script
  • petermillspaugh avatar
    sendLesson
    @petermillspaugh
    An interactive, runnable TypeScript val by petermillspaugh
    Script
  • petermillspaugh avatar
    refreshToken
    @petermillspaugh
    Forked from petermillspaugh/refreshVerificationToken
    Script
  • petermillspaugh avatar
    sendVerification
    @petermillspaugh
    Forked from petermillspaugh/sendVerificationEmail
    Script
  • std avatar
    sqlite
    @std
    SQLite - Docs β†— SQLite is a lightweight, standard database. Every Val Town account comes with its own private SQLite database that is accessible from any of your vals via std/sqlite . Val Town SQLite is powered by Turso . Usage Migrations ORMs You may find these admin viewers helpful managing your database: SQLite Explorer (built in Val Town) LibSQL Studio Limits You can store 10mb on the free plan and up to 1gb on the paid plan. Contact us if you need more space. πŸ“ Edit docs
    Script
  • std avatar
    email
    @std
    Email - Docs β†— Send emails with std/email . You can only send emails to yourself if you're on Val Town Free. If you're on Val Town Pro , you can email anyone. Want to receive emails instead? Create an email handler val Basic usage import { email } from "https://esm.town/v/std/email"; await email({ subject: "New Ink & Switch Post!", text: "https://www.inkandswitch.com/embark/" }); subject The email subject line. It defaults to Message from @your_username on Val Town . to , cc , and bcc By default, the to field is set to the owner of the Val Town account that calls it. If you have Val Town Pro, you can send emails to anyone via the to , cc , and bcc fields. If you don't have Val Town Pro, you can only send emails to yourself, so leave those fields blank. from The from is limited to a few options: It defaults to notifications@val.town if you don't specify it. If you do specify it, it must be of the form: your_username.valname@valtown.email . replyTo replyTo accepts a string email or an object with strings for email and name (optional). This can be useful if you are sending emails to others with Val Town Pro. import { email } from "https://esm.town/v/std/email"; await email({ to: "someone_else@example.com", from: "your_username.valname@valtown.email", replyTo: "your_email@example.com", text: "these pretzels are making me thirsty", }); Attachments You can attach files to your emails by using the attachments field. Attachments need to be Base64 encoded, which is that the btoa method is doing in this example: import { email } from "https://esm.town/v/std/email"; export const stdEmailAttachmentExample = email({ attachments: [ { content: btoa("hello attachments!"), filename: "test.txt", type: "text", disposition: "attachment", }, ], }); Here's an example sending a PDF . πŸ“ Edit docs
    Script
  • petermillspaugh avatar
    sendLessonResponses
    @petermillspaugh
    @jsxImportSource https://esm.sh/react
    Script
  • petermillspaugh avatar
    fetchConfirmationHtml
    @petermillspaugh
    Forked from petermillspaugh/fetchVerificationEmailHtml
    Script
1
Next
February 10, 2024