Send attachments via Amazon SES ( Sendemail Function )

Asked

Viewed 264 times

1

Hello,

I’m using a library (http://docs.aws.amazon.com/aws-sdk-php/v3/api/api-email-2010-12-01.html#sendemail) from Amzon to email on a system I work on, but I stopped at a problem:

I am using the Sesclient class and its Sendemail function.

I couldn’t find anything regarding how to send attachment, and I need to send them.

I searched the Amazon documentation and found no answers.

If anyone can help me, I’d appreciate it.

Sincerely yours, Renan.

  • Does it not help? http://answall.com/questions/9958/enviar-email-em-massa-usando-amazon-ses?rq=1

  • Thank you very much Marconi, but this topic is not exactly what I want to do.

1 answer

0


You have two options:

  1. Use an email sending library via SMTP and point it to your SES
  2. Create a low level email (raw), encoding the entire format of including a file manually (the whole process of encoding the file in Base64, splitting into blocks, etc). I found someone who’s done it before and maybe it can be a starting point for you.

I would sincerely try option 1 first.

  • Thank you very much Sergio. I ended up doing the second way, doing a "raw" email, from the header to the upload. Thank you so much for having responded.

  • Beauty @Port-Port. Thank you if you mark my answer as the solution.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.