You are currently viewing the new Anvil Editor Docs.
Switch to the Classic Editor Docs
You are currently viewing the Classic Editor Docs.
Switch to the new Anvil Editor Docs

Email

Your apps can send and receive email using the built-in Email Service.

Start by adding the Email service to your app using the App Browser, or check the Quickstart for more.

Sending and Receiving Email from your apps

To send an email, run anvil.email.send().

To receive an email, decorate a function as @anvil.email.handle_message. this function will run when emails are received and the contents will be available as the first positional argument.

For more information, see Sending and Receiving Email.

Security and DKIM

If you’re working with sensitive data, it’s important to verify that emails come from who they claim to. Anvil has built-in support for DKIM, a system that allows senders to sign emails. You can also use some simple techniques of your own.

For more information see Security and DKIM


Do you still have questions?

Our Community Forum is full of helpful information and Anvil experts.