New
- Receiving mail through SendGrid's Inbound Parse. On an Email plugin that has inbound mail, this plugin now offers a
sendgridreceiver, so an add-on that receives email (a helpdesk, say) can take SendGrid's posts without knowing anything about SendGrid. It reads both ways SendGrid posts: the whole message when "POST the raw, full MIME message" is ticked, which is the one to use, and SendGrid's parsed form with its headers, bodies,attachmentNfiles,attachment-infoandcontent-ids. Bodies are converted to UTF-8 by the charsets SendGrid names, the SMTP envelope is kept (it is where asupport+token@address survives), and SendGrid's SPF and DKIM results and spam score are passed along - Added optional
inbound_public_key,inbound_usernameandinbound_passwordsettings. Without them a post is trusted by the secret in its address alone. With a username and password, every post has to carry them as basic auth. With a public key from a Parse security policy, every post has to carry SendGrid's signature, which can only be checked where PHP keeps the raw request body; the README explains - On an Email plugin from before inbound mail, nothing changes: the provider still loads and sends exactly as before, and simply offers no receiver