Sendgrid Provider
Using this provider requires a Sendgrid account. You can create one here.
Sendgrid is a cloud-based email delivery and management platform that provides businesses with a solution for sending transactional and marketing emails. It offers a set of tools and APIs that enable developers to integrate email functionality into their applications, websites, or software products.
Configuration
Before you start using the App, configure your Sendgrid Account:
-
Generate API key
-
Create Sender
-
For every event message you want to send to the customers, create a Dynamic template
Want to test messages? Working on the application code? See the testing section.
Now you can configure EAM:
- Open the Emails and Messages app in Saleor Dashboard
- Click on
Add provider
- Choose
Sendgrid
- Provide configuration name and API key and click on
Save provider
- Application will redirect automatically to the configuration details
- Navigate to Sender section and choose sender. Save the changes
- In the events section, assign dynamic templates to events. Save the changes
The application is now configured.
Testing
Using a Gmail account for testing may not be possible due to security restrictions. To test the application, you can test the mailbox at MailSlurp.
- Create an account at MailSlurp
- Create a new inbox in MailSlurp
- Use the inbox address to [create a new sender in Sendgrid]https://docs.sendgrid.com/ui/sending-email/senders)
- Confirm the sender by clicking on the link in the MailSlurp inbox
- Configure the provider in the Emails and Messages app to use the new sender
Unless a sandbox mode is enabled in the provider configuration, the emails will be sent to the customers. Make sure to use a test account.