aws-ses-node-js-examples | AWS SES API to generate emails | Runtime Evironment library
kandi X-RAY | aws-ses-node-js-examples Summary
kandi X-RAY | aws-ses-node-js-examples Summary
Tutorial on using the AWS SES API to generate emails with attachments, create/list/delete verified senders. We will be using NodeJS as our primary language but it can be done using any language the AWS SDK supports.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of aws-ses-node-js-examples
aws-ses-node-js-examples Key Features
aws-ses-node-js-examples Examples and Code Snippets
Community Discussions
Trending Discussions on aws-ses-node-js-examples
QUESTION
Below is the code from https://github.com/andrewpuch/aws-ses-node-js-examples where there is an example to send and email with attachment,
I have modified the code to fetch a image file from aws s3 and and send it with mail as attachment, when i did it for an text file it work perfectly, but when I have sent an image, in the mail I was not able to see the image since it is corrupted.
when I tried opening with apple photo app it has shown that meta data is missing, also I have added Content-Transfer-Encoding: base64 in the header of the mail, when I tried with utf8, utf-8 and UTF-8 in Content-Transfer-Encodingin the header I got the below response from aws
...ANSWER
Answered 2017-Mar-14 at 09:24First, your MIME message is not well formatted. The last line should be --NextPart--
instead of just --NextPart
.
You should also convert the data.Body
array into its base64 string representation using new Buffer(data.Body).toString('base64')
as shown below:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aws-ses-node-js-examples
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page