cf-dev Digest, Vol 3, Issue 92


Sandy Cash Jr <lhcash@...>
 

Date: Thu, 18 Jun 2015 15:41:25 +0000
From: "Curry, Matthew" <Matt.Curry(a)allstate.com>
To: "cf-dev(a)lists.cloudfoundry.org" <cf-dev(a)lists.cloudfoundry.org>
Subject: [cf-dev] PHP Buildpack and email
Message-ID: <D1A850D3.31DE%matt.curry(a)allstate.com>
Content-Type: text/plain; charset="us-ascii"

Since sendmail appears to be missing from the CF stemcell, how are
people sending email from PHP apps?

Thanks,
matt
I am not a PHP guy at all, and I don't know if this is part of the PHP
buildback, but PEAR::mail (http://pear.php.net/package/Mail) appears to
support remote STMP hosts, which would obviate the need for a local
sendmail binary.

-Sandy

--
Sandy Cash
Certified Senior IT Architect/Senior SW Engineer
IBM BlueMix
lhcash(a)us.ibm.com
(919) 543-0209

"I skate to where the puck is going to be, not to where it has been.” -
Wayne Gretzky


Casey West
 

From: Sandy Cash Jr <lhcash(a)us.ibm.com>
Reply: Discussions about Cloud Foundry projects and the system overall. <cf-dev(a)lists.cloudfoundry.org>>
Date: June 18, 2015 at 15:00:50
To: cf-dev(a)lists.cloudfoundry.org <cf-dev(a)lists.cloudfoundry.org>>
Subject:  Re: [cf-dev] cf-dev Digest, Vol 3, Issue 92


Since sendmail appears to be missing from the CF stemcell, how are
people sending email from PHP apps?

Thanks,
matt
I am not a PHP guy at all, and I don't know if this is part of the PHP buildback, but PEAR::mail (http://pear.php.net/package/Mail) appears to support remote STMP hosts, which would obviate the need for a local sendmail binary.
I’m also not a PHP developer, however your suggestion is in line with cloud-native application development. That is to say, “treat backing services as attached resources”.

Typically when requiring a backing service, such as outbound email, you use a third-party service. This could be a direct SMTP interaction to, say, gmail, or it could be via an API such as SendGrid. I’m not advocating a particular service, that requires research into your app’s needs, but the general approach is advised.

— Casey