Is there any way to execute PHP mail()
function with some arguments so sendmail will load different configuration? Something similar like Python can do with a code below
ssmtp = "/usr/sbin/ssmtp"
args = [ssmtp, '-v', '-v', '-v', '-C', '/etc/ssmtp/ssmtp-locrelay.conf', to_address]