Contact Form
ContactForm
is a simple contact form component which automatically
detects and uses your environment variables for either SendGrid or EmailJS
and will use those to send emails from your site!
Theme Config
You must specify whether you’re using SendGrid or EmailJS in your GalaxyTheme config:
For more details, see the configuration option for emailProvider.
SendGrid
EmailJS
Environment Variables
These are the environment variables you’ll need to set for your contact form to work correctly.
They need to be prepended with PUBLIC_
because that’s what allows Astro
to pick those variables up on the client side. Vite blocks all environment
variables on the client side that don’t start with PUBLIC_
.
SendGrid
EmailJS
Props
ContactForm
currently has no props.