Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I configured my server to send SMTP (Gmail) via PHP using this tutorial. https://www.digitalocean.com/community/tutorials/how-to-use-gmail-or-yahoo-with-php-mail-function.
“For Gmail, use the following settings: account gmail tls on tls_certcheck off auth on host smtp.gmail.com port 587 user user1@gmail.com from user1@gmail.com password yourgmailPassw0rd This file can also have more than one account, just ensure that the “account” value is unique for each section. Save the file and use chmod to make this file readable only by the owner since it contains passwords. This step is mandatory because msmtp won’t run if the permissions are more than 600.”
It says this file can have more than one account so I have SMTP connections for 2 websites in the file. Both have a unique name and are configured to send with a custom from address (Gmail is able to send mail as these addresses, both have been tested). My problem is the server has one php.ini file where sendmail_path has a -a ACCOUNT1 flag. How can I configure sendmail_path to send from whichever account in my MSMTPRC file the from address belongs to?
Thank you for any advice.
gerard
Jon Harris
orbitstorm88
rem3n
yolanda smith
301276acdc124dd982fe86364ba8c4
30ddab6038c044188d489290785dcb
699c9bc0a2c34f248e792cb8d2c6ab
Kent Morlan
sylvaticus
agitechcr
8b8f3c8ea96345bf8ddb0a59a008e2