I have a AWS SES User credentials and I want to send an email with an attached pdf via this user in Google AppScript. Unfortunately the AWS SDK for nodejs does not work in AppScript which leaves me with two options.
- Using the SMTP Interface
- Make a direct HTTP request using the REST API
I could not find a way to send a SMTP request from AppScript which leaves only option 2. However I could not find any code example where this one was achieved. The SendMail Action describes the request but there is not field where I could put in the attachment. Does this mean I have to use the RAW type and create a MIME-formatted email to add an attachment?
I also don't understand the needed Parameter, how the signature is created from the SES user I have and so on, do I even need AWS credentials?
I am quite lost, any help is highly appreciated.