ssmtp

Adding SendGrid as a SMTP relay for ssmtp is easy. Edit /etc/ssmtp/ssmtp.conf and add the following:

mailhub=smtp.sendgrid.net:587
AuthUser=apikey
AuthPass=sendgridapikey
UseSTARTTLS=YES

Your changes will come into effect as soon as the next message is sent via ssmtp

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the SendGrid tag on Stack Overflow.