Send Email from amazon ec2 instance -
i have installed ubuntu on ec2 instance. want send email using php website im hosting on machine. have tried ses , sent successful email using console. how can this? easiest way (requiring least setup) ? best way?
ses idea. have option of either sending through smtp or through amazon aws ses api.
for sending trough smtp can use php mailer: https://github.com/phpmailer/phpmailer
for sending through ses api, at: http://docs.aws.amazon.com/aws-sdk-php/guide/latest/service-ses.html http://docs.aws.amazon.com/aws-sdk-php/v2/api/class-aws.ses.sesclient.html#_sendemail
the key thing consider here, email sending app, deliverability of email tricky part, not sending. ses has concept of sandbox can send to/from verified emails/domains. collects metrics on how doing (bounces etc) , take corrective actions if use service spam. upside of this, odds of mail being delivered higher when comes ses opposed if run own mail server.
Comments
Post a Comment