wasp
wasp copied to clipboard
[Email sender] Allow specifying provider specific options, like templateId for Sendgrid
Right now, when defining an email sender, and when sending an email via it, we don't allow any provider-specific options. It would be useful to provide some, because for example, users using Sendgrid
could use Sendgrid templates by providing templateId and dynamicTemplateData.
We would provide these in the emailSender
's send
method. I am not sure what is the best API for this, but we will figure that out!
Related Discord convo: https://discord.com/channels/686873244791210014/867713251479519232/1168305292098936932 .
Another request for this:
According to the api of sendgrid you can schedule emails via the send_at header: https://docs.sendgrid.com/for-developers/sending-email/building-an-x-smtpapi-header#scheduling-your-send But this sadly does not seem to be possible using the wasp's emailSender api: https://wasp-lang.dev/docs/advanced/email#javascript-api. Is there a nice and clean workaround or is it planned to add more headers to the emailSender API?
Discord convo: https://discord.com/channels/686873244791210014/1179895919471247490/1179895919471247490 .
One more request: https://discord.com/channels/686873244791210014/1218081183318016000/1218081183318016000 .
One more request: https://discord.com/channels/686873244791210014/1232407359230574734/1232407359230574734 .
Related to #2164
Users is blocked by not being able to set the Mailgun to a EU specific host: https://ptb.discord.com/channels/686873244791210014/1274165849481019495/1274165849481019495