std/email
lets you send emails from Val town. You can send emails to yourself, only - unless you have Val Town Pro, in which case you can send emails to anyone.
Basic usage
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
.
Attachments
You can attach files to your emails by using the attachments
field.
Here’s an example sending a PDF.