Нужна была отправка для одного сайта с разных аккаунтов.
Сделали так:
1) Добавили нужные аккаунты в ".msmprc".
2) В настройках главного модуля, в поле "Дополнительный параметр для передачи функции mail" указали "--read-envelope-from".
"--read-envelope-from" позволяет выбирать аккаунт автоматически по полю "From" вместо явного указания аккаунта:
[URL=https://wiki.archlinux.org/title/msmtp]https://wiki.archlinux.org/title/msmtp[/URL][QUOTE]Tip: You can use --read-envelope-from instead of -a default to automatically choose account by the From: field in a message you are going to send. You can also use --read-recipients,-t to read recipient addresses from the To, Cc, and Bcc headers of the mail in addition to the recipients given on the command line.
[/QUOTE]
Сделали так:
1) Добавили нужные аккаунты в ".msmprc".
2) В настройках главного модуля, в поле "Дополнительный параметр для передачи функции mail" указали "--read-envelope-from".
"--read-envelope-from" позволяет выбирать аккаунт автоматически по полю "From" вместо явного указания аккаунта:
[URL=https://wiki.archlinux.org/title/msmtp]https://wiki.archlinux.org/title/msmtp[/URL][QUOTE]Tip: You can use --read-envelope-from instead of -a default to automatically choose account by the From: field in a message you are going to send. You can also use --read-recipients,-t to read recipient addresses from the To, Cc, and Bcc headers of the mail in addition to the recipients given on the command line.
[/QUOTE]