I use mstmp to send mail from various smtp account. Using PHP's mail command it sucessfull sends mail from mstmp using the default account.
However, I want it to let me specify which smtp account to send from. Using mstmp you do that with the following command: msmtp --account=svh where svh is the smtp account you name. More on msmtp can be found here: msmtp sourceforce
So what are my options, is there a modified mail command that will let me use msmtp using the --account parameter ? Should i just run a shell command with root privilege (don't want to do that).
How would you tackle this?