How can I build an application hosted on Amazon EC2 and send emails using Amazon SES through it?

0

Hello everyone, I've just started exploring the vast suite of AWS and I am a bit stuck on how should to build an application hosted on Amazon EC2, which sends email to an address using Amazon SES...

Currently I am using the AWS JavaScript SDK to send emails - I read on the SES pricing page that I'll be paying $0.10 for every 1000 emails I send using "an email client or other software package", which I guess includes the AWS SDK as well; just above that it says "62,000 emails for free each month" when I send emails using an application hosted on Amazon EC2 - the offer's really good for me, so I want to learn how to setup an application hosted on Amazon EC2, and how to program it to send an email to a particular email using SES...

I tried finding some articles/tutorials on the same, but failed to find something helpful - if you can advise me on how I should start, that'd help me a lot :) Thanks!

1개 답변
2

You have two possibilities:

  1. Use the SES AWS API for sending. Either with the SDK client in the language of your app or using the AWS CLI aws ses send-email
  2. just configure your EC2 instance to relay mails to SES and send the mails to localhost via relayhost in postfix for example
relayhost = [email-smtp.us-west-1.amazonaws.com]:587

There's good documentation on this at https://docs.aws.amazon.com/ses/latest/dg/postfix.html

theist
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠