fix: --from should take priority over --smtp.user if set

This commit is contained in:
Maas Lalani
2023-09-26 15:53:51 -04:00
parent 73eee6d5a0
commit f18db202f9

View File

@@ -82,7 +82,9 @@ var rootCmd = &cobra.Command{
deliveryMethod = Resend
case smtpUsername != "" && smtpPassword != "":
deliveryMethod = SMTP
from = smtpUsername
if from == "" {
from = smtpUsername
}
}
switch deliveryMethod {