I’ve been trying to use the existing PHP Mail and SMTP to integrate Postmark for sending emails to my clients. When I try to send an email I get the error “does not comply with RFC 2822, 3.6.2.”
I am guessing this is because Postmark doesnt use usernames and passwords ([email protected]) but instead an API token as the username.
Is there a way to get around this or do you recommend an alternative configuration for self-hosted? I don’t want to use Zapier quite yet as it’s yet other thing to design and configure on my server.
Also, is there any preference / difference between the mail drivers?
For Postmark I’d suggest using their API instead by setting a value for POSTMARK_API_TOKEN in the .env file. This would also enable supporting Postmark bounce and open notifications.
Also - I used the fix suggested in GitHub by your link and it worked perfectly. So anyone else experiencing this can simply update that component in Composer, make that small PHP edit, and you’re all set.