SENDGRID FOR MODX
We are pleased today to release to the MODX community - sendGrid for MODX forms.
Firstly for those that don't know - what is sendGrid?
SendGrid is the world's largest Email Infrastructure as a Service provider. Our email delivery service moves 2% of the world's non-spam email (over 14 billion emails/month) for more than 180,000 companies including technology leaders like Pinterest, Spotify, and Uber.
So, why the need for this extra? We were finding on several clients domains, that due to them being new, and not "trusted" by various email providers spam filters, emails were being lost, or not even delivered!
Thanks where this extra comes in, by using the sendGrid API you can reliably send globally trusted emails to your recipients. Currently, it is meant as a replacement for formitautoresponder, however currently it has fewer options. CC, BCC e.t.c will be in the next version.
This version currently only supports one email type, i.e use it to replace email or formitautoresponder, not both - we will in the future be extending functionality to include all usage case scenarios, so that you would only need one!
How to use
If you have not already, signup to sendGrid and get a free 400 email per day account. Its completely free, and unbranded. Awesome!
Next, pop over to the extras repository, or install it via the extras/package manager in your MODX install.
When installed, head over to your system settings, and insert your sendGrid username and password, these are the same details that you use to sign in to your sendGrid dashboard.
Now, your all all set. Drop the sendGrid call into your FormIt hooks call, and specify a few of the options below.
Followed by a few of these options!
- &sgTpl = The name of the chunk you wish to use to render your content. Required!
- &sgFrom = Email address from. Defaults to system setting emailsender
- &sgTo = Email address of recipient. Defaults to email field
- &sgToName = Name of the person receiving the email. Defaults to name field
- &sgFromName = Name of the sender of the email. Defaults to site_name
And thats all there is to it!
Hope that you find this useful, and if there is anything you would like to see/extend/improve on, please let me know in the comments box below.