Adjust sendmail parameters in the php.ini on the development server to connect to an external mailcatcher (SMTP)
We would like to connect sendmail to an external mailcatcher (SMTP).
Our customers would be able to login the mailcatcher (Mailhog in this case) on a docker server and would be able to fully test all functions of the website, without having to be afraid that some customers might receive e-mails by accident.
The problem with making a solution for Magento that it's not always guaranteed to send mails to the mailcatcher, and is therefore not a solution we would prefer.
A command to change settings to the php.ini or sendmail line (in the php.ini) would solve this problem.