I am running an Apache server with PHP. Until now, emails to users have been sent from this Apache server using PHP's mail()
function.
To optimize this structure, I would like to separate the email part on a separate server (running qmail exclusively).
Now that the Apache server does not have any email software anymore, what is the best way to have it send email (i.e. send the email content to the new mail server) ? As far as I know, PHP's mail()
function is not well suited to send mails from a separate server.
Thank you