This is such an easy way to route email when you are trying to get compliant for Trusted Sender Network / Trusted Sender Score https://trustedsenderscore.com/ or Cybersecurity Insurance requirements
This function was deployed on AWS so that a client could use their Zulu eDM Trusted Sender Network Cybersecure email API gateway for sending custom HTML emails.
- PHP 7+ (works on 8 etc)
- We used httpful.phar to simplify the API work - shout out to Nate http://phphttpclient.com/
- You will need a Zulu eDM Account https://zuluedm.com