nanobox-io/nanobox-engine-php

How to send mails?

lyondhill opened this issue · 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

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.

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

@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.