https://supertokens.com/ logo
custom headers in SMTP service
h

hitesh

04/28/2023, 9:39 AM
I want to include custom headers on the SMTPServiceConfig. Is this already supported?
r

rp

04/28/2023, 9:41 AM
hey @hitesh what are the custom headers?
h

hitesh

04/28/2023, 10:05 AM
X-MJ-TemplateID X-MJ-Vars Basically I am thinking to use Mailjet as email provider and use their templates. https://dev.mailjet.com/email/template-language/SMTP/
I can use their APIs but SMTP is really awesome.
Or is there aw to completely replace your SMTPService with nodemailer or something.
r

rp

04/28/2023, 10:10 AM
yea. Checkout the custom method part in the email delivery section. It allows you to take complete control of the way the email is sent. Our default email templates can be found here: https://github.com/supertokens/email-sms-templates
h

hitesh

04/28/2023, 10:21 AM
Small help. Over here, https://supertokens.com/docs/passwordless/email-delivery/custom-method The email field is the content of the default email tempalte?
r

rp

04/28/2023, 10:21 AM
no. the email is just the email ID
you need to make your own content
you can copy the templates from the repo above
h

hitesh

04/28/2023, 10:22 AM
ok cool