Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sendmail on OpenShift / PHP / CodeIgniter

I'm looking for OpenShift configuration information for sendmail functionality.

It's not totally clear to me what the preferred way of doing it is.

Some articles say that one must have the pear/Mail.php modules installed, others say that this would be when using a relay. Others say that OpenShift supports outgoing mail by default, although with some issues.

Then I've looked for cartridges that may be available, if that is the approach, but no luck there, although there is a SendGrid quickstart.

All I'm trying to do really, is send a couple of emails from my application. No large quantities, or mass marketing mailings.

Can someone please give me the short and sweet how-to?

Thanks in advance.

like image 980
Maxcot Avatar asked Jul 11 '13 00:07

Maxcot


1 Answers

OpenShift Online is hosted on Amazon's EC2 service. Most email servers are configured to detect and blacklist emails originating from EC2 when it detects spam. So although it may work initially, there is a chance that emails start to silently fail after some time due to being blacklisted.

It is recommended to relay through 3rd party smtp server/service:
https://www.openshift.com/blogs/email-in-the-cloud-with-mailgun
https://www.openshift.com/blogs/enabling-transactional-email-on-paas-with-sendgrid

like image 140
Nam Duong Avatar answered Oct 02 '22 14:10

Nam Duong