Email - Sendgrid

We are using Sendgrid to send emails from client environments.

The initial configuration must be done (or when changing the sender email address):

Sender configuration


The sender email address needs to be configured in core's application.yml - e.g. hello@gourban.co

The domain needs to be added to Sendgrid's Sender Authentication page. This results in 3 CNAME records needing to be added to the domain where the emails are originating from.

If an SPF TXT record exists on the sender domain the following needs to be added there:  include:sendgrid.net

e.g. "v=spf1 include:spf.protection.outlook.com include:sendgrid.net include:servers.mcsv.net -all" for allowing Sendgrid, Mailchimp and Office 365 to send from that domain.

 

A base template is set up on Sendgrid that contains the header and footer and can only be changed by goUrban. UUID of the template must be referenced in core's application.yml

Email content can be configured and translated on the dashboard under Settings -> Localization (only visible in the root branch):

user.signup.email
user.notification.email-changed
booking.created

This translation key is only sent to admins

payment.invoice.new.email
payment.failed.email 

This translation key is for issuing invoices etc.

vehicle.* 

This translation key serves for emails that will only be sent to admins with role Vehicle Notifications

auth.reset.password.email
rentals.report-for-user-group.email 

This translation key is for emails that send the trip summary (=rental reports) for business accounts

balance.settle.failed.email
balance.negative.reminder.email

a suffix of .subject is for the email's subject