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 to anyone.
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
If you don’t have Val Town Pro, you can only send emails to yourself, so leave those fields blank.
from is limited to a few options:
It defaults to
email@example.com you don’t specify it.
If you do specify it, it must be of the form:
replyTo accepts a string email or an object with strings for
This can be useful if you are sending emails to others with Val Town Pro.
You can attach files to your emails by using the
Here’s an example sending a PDF.