How would one implement amazon ses SendRawEmail with attachments in php?
-
07-02-2021 - |
質問
I have started to use Amazon SES service for sending all my project e-mails. Currently I have converted all my code to use it. But still lacking on examples for implementing e-mails with attachment as MIME types and HEADERS are not my strong side.
Could someone share some wisdom on how exactly I can get SendRawEmail to work? What 3rd-party libraries I should be using to create legit e-mail with attachments?
I use latest aws-ses-sdk for php.
解決
Thanks to suggestions from hakre i found this swift mailer transport https://github.com/jmhobbs/Swiftmailer-Transport--AWS-SES and now i use swift mailer to handle all my e-mails with attachment and without directly to SES.
他のヒント
This is very similar to this other post here: Sending email with attachment using amazon SES
Rather than posting the answer again here, please see that post for the implementation that worked for me.