Jonathan
Jonathan

Reputation: 21

How can I send email with SES using AngularJS

I have an AngularJS website hosted with AWS S3. I try to send emails with SES using AngularJS (without backend).

Is it possible? How can I handle the ACCESS/PRIVATE KEY without make it public?

Thanks.

Upvotes: 2

Views: 1617

Answers (1)

Arnold Daniels
Arnold Daniels

Reputation: 16573

Exposing the credentials needed to send e-mails through SES to you end-users, means they can use those credentials to send any kind of e-mail they want. Thus your SES account will be abused to send SPAM and blocked (and you'll get a large bill).

What you can do is trigger a JavaScript function in the cloud which sends the e-mail. You can deploy JavaScript (node.js) in the cloud with the AWS lamba service.

With Lambda you don't need to provision or manage any servers, you just pay for the execution time of your JavaScript function.

Upvotes: 3

Related Questions