Email notifications
Virto Commerce allows to send email notifications. To use this functionality the notification settings should be configured propertly.
How to configure email notifications
Smtp
If use gmail.com then need to do:
- Turn on
Allow less secure apps
here: https://www.google.com/settings/security/lesssecureapps - Set Gateway is
Smtp
in Notifications options in Appsettings.json or Notifications:Gateway in Azure - Then customize Smtp options:
- Fill SmtpServer
smtp.gmail.com
and Port587
- Set Login and Password
- like this in appsttings.json:
"Gateway": "Smtp", "DefaultSender": "[email protected]", "Smtp": { "SmtpServer": "smtp.gmail.com", "Port": 587, "Login": "[email protected]", "Password": "**** **** **** ****", "ForceSslTls": false }
- or in Azure:
- Notifications:Smtp:SmtpServer set
smtp.gmail.com
- Notifications:Smtp:Port set
587
- Notifications:Smtp:EnableSsl set
true
- Notifications:Smtp:Login set
[email protected]
- Notifications:Smtp:Password set
**** **** **** ****
- Notifications:Smtp:SmtpServer set
- Fill SmtpServer
SendGrid's API
- Set Gateway is
SendGrid
Notifications options in Appsettings.json or Azure - Then fill apikey in SendGrid options
- looks like this in appsetting.json:
"Gateway": "Smtp", "DefaultSender": "[email protected]", "SendGrid": { "ApiKey": "testapikey" }
- or in Azure:
* Notifications:SendGrid:ApiKey settestapikey
- looks like this in appsetting.json:
Note
Also you could check the emailing-services in IntegrationTests here
Last update:
January 17, 2024