nanobox-engine-php icon indicating copy to clipboard operation
nanobox-engine-php copied to clipboard

How to send mails?

Open lyondhill opened this issue 8 years ago • 3 comments

From @mbrodala on December 16, 2016 11:44

How is an app supposed to send mails? I tried the sending test of TYPO3 which uses PHP's mail function which in turn uses sendmail but no mail was delivered.

Copied from original issue: nanobox-io/nanobox#304

lyondhill avatar Dec 16 '16 14:12 lyondhill

As mentioned in https://content.nanobox.io/nanobox-vs-pagoda-box/#nosharedplatform, we don't handle this automatically like Pagoda Box, so manual configuration seems like a good option in its stead.

danhunsaker avatar Jan 04 '18 18:01 danhunsaker

I see, so an external SMTP server is the only option then.

mbrodala avatar Jan 05 '18 08:01 mbrodala

@mbrodala It's not the only option, but Nanobox doesn't include the necessary executables by default AND many cloud providers block ports that mail is typically sent through due to the risk of abuse. So to send mail directly, you'd need to include the necessary executables as extra_packages in your boxfile.yml and ensure that your provider allows you to send mail directly.

An external SMTP server is the recommended method.

sanderson avatar Jan 05 '18 14:01 sanderson