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
Gmail.com
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
- Turn
ON
SSL: EnableSsl set true - Set Login and Password
- like this in appsttings.json:
"Smtp": { "SmtpServer": "smtp.gmail.com", "Port": 587, "EnableSsl": true, "Login": "test@test.com", "Password": "qwerty" }
- or in Azure:
- Notifications:Smtp:SmtpServer set
smtp.gmail.com
- Notifications:Smtp:Port set
587
- Notifications:Smtp:EnableSsl set
true
- Notifications:Smtp:Login set
test@test.com
- Notifications:Smtp:Password set
qwerty
- Notifications:Smtp:SmtpServer set
- Fill SmtpServer
Sendgrid SMTP
If use another SMTP server like sendgrid.net then need to do:
- 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
- Turn
OFF
SSL: EnableSsl set falseNOTE: should read prerequiments in the SMTP server site and read the article
- Set Login and Password
like this in appsttings.json:
json "Smtp": { "SmtpServer": "smtp.sendgrid.net", "Port": 25, "EnableSsl": false, "Login": "test@sendgrid.net", "Password": "qwerty" }
- 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:
"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:
April 20, 2022