Question:
I have a website hosted on S3 on amazon web services. I want to receive emails on my gmail account from the visitors of my website if they wish to contact me. I’m confused with the steps for the setup as I tried working around with SES on amazon web service but am completely off tracK I believe.
Thanks.
Answer:
S3 doesn’t support any server-side code, such as PHP – so you can’t use server-side logic to send an email.
There are two options:
- Implement a mailto: link that will cause the user to open their mail client when then click on it.
- Use a third-party mail service that supports a REST API, and implement that in Javascript. You can use something like SES, Sendgrid or Mailgun.
Each of these services can be called using Javascript. Implement your mail form page to make an API call to these services to deliver the comment to your inbox.