AWS SES - Sending Emails - email

I have created an SES Account and I have verifed my domain - easy as the A record is already with AWS route53. I now need to send emails. Note: I have also created an smtp user account and have the keys.
Question - can I use any (lets say PHP as I like PHP) php script to send emails via SES?
I have found a couple of sites that appear to have scripts for SES like http://www.orderingdisorder.com/aws/ses/ but wanted to ask if now my domain is verified and I have user/keys etc is SES really just an SMTP gateway and I can use any (working) script to send emails via this interface?
thx

You can use their SMTP gateway or send emails via the AWS SDK for PHP programmatically. Just download the SDK, include it in your PHP file and you're good to go.
http://aws.amazon.com/about-aws/whats-new/2011/12/13/amazon-simple-email-service-gets-simpler-with-smtp/
http://docs.aws.amazon.com/AWSSDKforPHP/latest/#i=AmazonSES
http://aws.amazon.com/sdkforphp/

Related

Form Submission with email to get routed via Netlify

I have a new site created and planning to host it on Netlify, I am thinking of creating a form to collect customer Testimonials from the site and email me on my company email address I have read that Netlify does not provide email service. Got inputs like using Zapier integration or free mail service like Zoho.
What other options do I have to make this work? Anyone using Netlify and got email forwarding activated?
You can consider using any SMTP email service and just send the email using PHP or any other code way.
For example here is how to send emails with PHP using Gmail SMTP.
https://pepipost.com/tutorials/send-an-email-via-gmail-smtp-server-using-php/
Or how to use the AWS SMTP and PHP.
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-using-smtp-php.html

How to route mails outside Mac Os X Server host

I have a mac osx server at my office. I have only one email address configured on it because it's an email address outside my GSuite account. That email address was created for sending mails from a php script (I don't want to pay to Google for that email address because I don't need all of the Google Services on it). I configured PHP Mailer for sending mails using that email account.
It's connecting perfectly fine, authentication is correct, etc., but there is one problem: if I send mails to #mydomain.com it says that account doesn't exist, but it does exist, only that it is hosted on GSuite. If I send mails outside mydomain, it works fine.
Question is: how do I route those mails to look up for the correct MX récords? I mean, how to make those #mydomain.com emails reach the GSuite host?
You can have multiple MX records per domain. It is possible. They will use priorities. You can even have multiple email servers checking emails from each other.
However, you case with hosted emails this won't work. Google is not going to let you do this.
You will have to pay.

Create custom email accounts with Heroku

I have a client hosted with Godaddy and I am willing to change to Heroku.
I have tried installing Heroku Add-ons but that is not what I am looking for.
How can I create custom accounts for sending and receiving emails with a custom account (client#site.com)
I don't want to send mails via node.js nor PHP.
Thank you!
Heroku will only host your HTTP website. You need another provider for emails.
GSuite will give this to you for example.
By setting up your DNS records properly, you will then be able to tell your domain name to point to Heroku for HTTP requests, and to your emails provider for receiving those messages.

How to set up email on Amazon EC2

I have domain. I have my website on an Amazon EC2 instance. I have pointed the domain there, so website is accessible with the domain now. all is working fine but I want to set up the email now, I should be able to create email id and manage emails.
Someone suggested Amazon SES to be set up, I did that but then what to do?
Any ideas greatly appreciated.
You don't want to run your email on EC2.
Amazon SES is for outgoing email only, i.e. it can replace your SMTP server, so for example if your website generates emails, you could use SES to send them out, but its not a full 'email' service in the traditional sense.
For normal email operations, you need to use an email provider such as gmail, outlook, rackspace email etc.
AWS also offers AWS Workmail as an option. I use both Rackspace email and outlook email for various domains that I have hosted on EC2 instances.
If you are accustomed to using a shared hosting service, i.e. discountasp.net where the web hosting and email is all bundled together as a single packaged service for you, you need to think of things differently when you start running and managing your own ec2 server instances. Its upto you to string the parts together.
Since you have hosted website on AWS EC2 and Domain name pointed to Instance. I would suggest that you use AWS WorkMail to send Email. This is new service which has been introduced. AWS WorkMail is available on US East (N. Virginia) and EU (Ireland) region. It is easy to configure and you can use your domain name to create email Ids, say info#domainname.com.
After configuration you will have your own console for where you can manage and access all your emails. To access emails AWS have own console similar to webmail.

How to configure email accounts like support#xyz.com or feedback#xyz.com on AWS

I registered my domain with godaddy.com. Want to use EC2 with SES to host my website on amazon web services.
On my website there would be few email accounts like support#xyz.com or feedback#xyz.com. How can I configure these email accounts on my SES server ( or my ec2 server ); so that I could receive any emails sent to these email addresses ( through some mail client like Outlook, Thunderbird)
This is the answer I received from the AWS team via the AWS forum:
Hello,
I'm sorry to say that SES doesn't handle inbound email today. We are
an outbound email delivery service only. However, you could (with some
effort) set up a postfix server and a POP3 server on an EC2 instance,
get a static IP bound to that EC2 instance, and list that on your MX
records. It is a bit more of a challenge than using gmail.com for
example, but it would provide you what are looking for.
Thanks, and please let me know if I can help further.
Paolo
You can sign your domain up for free Google Apps. During the setup, Google will direct you to modify your domain's MX records in Godaddy in order to receive mail. Then you can use AWS SES to send mail and mail will be received by your domain's Gmail user.