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.
For S3 bucket, select the bucket that you created to store the emails. (Optional) For Object key prefix, you can enter an S3 prefix where you want to store the emails. If you leave this field blank, emails are stored at the root of the bucket.
You can use Amazon S3 to host a static website. On a static website, individual webpages include static content. They might also contain client-side scripts. By contrast, a dynamic website relies on server-side processing, including server-side scripts, such as PHP, JSP, or ASP.NET.
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:
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.
You can use AWS Lambda with Amazon API Gateway to create a serverless backend and use Amazon Simple Email Service to send an e-mail. A good tutorial below:
Create Dynamic Contact Forms for S3 Static Websites Using AWS Lambda, Amazon API Gateway, and Amazon SES
Late to the party, but as others have said you can setup a AWS Lambda function at an API Gateway to use AWS SES to send an email. You post your html form to it (or some other service you create on an actual server you control) and send an email via some Gmail SDK/API There's quite a few tutorials for this online.
You can also use a free third-party service like Formspree to create an html form that posts to their servers and they will send you an email to wherever you specify.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With