Setup Shootmail SDK
If you are an existing user, just update the Shootmail SDK. If you are a new user, head to the SDK setup pageSetup Better Auth
Refer Better Auth documentation to get startedIntegrating Shootmail templates
Clone the pre-built better auth email templates to further customize them. These pre-built email templates already have the required parameters configured. You can add custom elements like buttons, footer, social media links etc. Guide on cloning the templates. Cloning the template will also generate aunique template ID that you will need to send emails with better auth.
Sending emails
Common params for all the email methods:
string
required
The email address of the recipient
string
required
The template ID of the email template you generated by cloning pre-built better auth templates
string
The subject of the email, if skipped, a default subject will be used (optional)
string
The pre-header of the email, if skipped, a default pre-header will be used (optional)
string
The email provider you want to use to send the email. If you have configured only one email provider while initializing the Shootmail client, you can skip this.
The only configured email provider will be used as default.
Object
The sender of the email (optional)
string
The name of the sender (optional)
string
required
The email address of the sender
Methods
Signup verification email
subject, preHeader, provider, from are available to use. Below is the
required params for this method.
string
required
The verification URL
OTP verification email
subject, preHeader, provider, from are available to use with this method.
Below is the required params for this method.
string
required
The OTP
string
required
The type of OTP “sign-in” | “email-verification” | “forget-password”
number
The validity of OTP in minutes. This is just to display a message to the user in the email.
Password reset email
subject, preHeader, provider, from are available to use with this method.
Below is the required params for this method.
string
required
The reset password URL
Change email verification email
subject, preHeader, provider, from are available to use with this method.
Below is the required params for this method.
string
required
The verification URL
string
required
The new email
Delete account verification email
subject, preHeader, provider, from are available to use with this method.
Below is the required params for this method.
string
required
The verification URL
Invite organization member
subject, preHeader, provider, from are available to use with this method.
Below is the required params for this method.
string
required
The invite URL
string
required
The team name
string
required
The email of the inviter
string
required
The name of the inviter

