eMail icon indicating copy to clipboard operation
eMail copied to clipboard

Multiple email.conf configurations

Open TIMAI2 opened this issue 4 years ago • 2 comments

How would I use multiple configurations for email.conf for several different smtp servers ? Can this be set on the command line when sending an email, or is it in configuration somewhere ?

Thanks

TIMAI2 avatar Feb 25 '21 22:02 TIMAI2

No optional configuration files, nor sections within the single email.conf, but from the man page:

If you do not have or want a configuration file, you can specify the -r option to specify your smtp server and this will allow you to bypass using a configuration file and use default values. If you specify the -r option (listed below) and you do have a configuration file, it will still use the configuration file but override the SMTP_SERVER variable with what is used at the command line.

You could use that in, for example, different scripts that call email with different servers and probably other options.

rb07 avatar Feb 25 '21 23:02 rb07

Thank you

TIMAI2 avatar Feb 26 '21 10:02 TIMAI2