2
For a simple contact form I intend to use Amazon SES with PHP. Basically PHP will send an email to myself with the email of the user who contacted me to give an answer.
Researching, I came across the following alternatives:
- Using the PHP Mailer class with Amazon SES credentials.
- Set up Postfix as Amazon SES Relay to use the PHP mail() function.
- Use PHP Mailer together with Postfix as Amazon SES Relay.
Doubts:
- What is the purpose of using Postfix as SES Reset if I can only use PHP Mailer informing the server and credentials?
- Because some people set up Postfix as SES Reset and still use PHP Mailer, even though PHP Mailer is able to use SES directly?
- Best practice, using Amazon SES, to send contact emails and simple transactional emails with PHP?
Right. In this case there is a 4th alternative, which would use the PHP API of Amazon SES. Would this override the need to use a local SMTP server for transactional emails without blocking the queue? What is the best way to send transactional emails without using a local SMTP server like Sendmail and Postfix?
– Gustavo Piucco
In my opinion, the best way is to implement the use of the php swiftmailer package (http://swiftmailer.org/) and its advanced queuing strategy. But since you said it was something simple, the swiftmailer would be a cannon to kill a fly :)
– gpupo