Pergunta

I have my web app working in azure. What I would like is to be able to send emails from xxx@mydomain.com. Is that possible using SendGrid? For example, if I use gmail's smtp, emails are sent from the email address specified in the NetworkCredentials user name, even if in the MailMessage I use a different email address. If I use SendGrid instead, will emails come from the user name created by azure or will I be able to achieve this?

Foi útil?

Solução

You will be able to send email from whatever address you want, just specify the correct from address (e.g. xxx@mydomain.com) when sending the email.

Outras dicas

You will need to use what SendGrid calls "Whitelabels":

SendGrid Whitelabel

To access this page, log into https://app.sendgrid.com/ then click on Settings > Whitelabels > Domains:

enter image description here

SendGrid will then ask you to enter 3 CNAME records to prove that you own/ have authorised access to that domain.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top