nanobox-io / nanobox-engine-php

Engine for running PHP apps on Nanobox
https://nanobox.io
MIT License
19 stars 15 forks source link

How to send mails? #38

Open lyondhill opened 7 years ago

lyondhill commented 7 years ago

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

danhunsaker commented 6 years ago

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.

mbrodala commented 6 years ago

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

sanderson commented 6 years ago

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