How would one implement amazon ses SendRawEmail with attachments in php?

StackOverflow https://stackoverflow.com/questions/7681896

  •  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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top