wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
13.73k stars 1.18k forks source link

[Email sender] Allow specifying provider specific options, like templateId for Sendgrid #1553

Open Martinsos opened 1 year ago

Martinsos commented 1 year ago

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 .

Martinsos commented 11 months ago

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 .

Martinsos commented 7 months ago

One more request: https://discord.com/channels/686873244791210014/1218081183318016000/1218081183318016000 .

Martinsos commented 6 months ago

One more request: https://discord.com/channels/686873244791210014/1232407359230574734/1232407359230574734 .

Martinsos commented 4 months ago

Related to #2164

infomiho commented 2 months ago

Users is blocked by not being able to set the Mailgun to a EU specific host: https://ptb.discord.com/channels/686873244791210014/1274165849481019495/1274165849481019495

infomiho commented 2 months ago

Another user facing issues with Mailgun and the EU specific host: https://discord.com/channels/686873244791210014/1274165849481019495/1281897653944320032

infomiho commented 2 months ago

Related https://github.com/wasp-lang/wasp/issues/2272

SumeraMartin commented 1 month ago

Hi guys, any ETA on this issue? Thinking if I should: