fix: --from should take priority over --smtp.user if set
This commit is contained in:
4
main.go
4
main.go
@@ -82,7 +82,9 @@ var rootCmd = &cobra.Command{
|
|||||||
deliveryMethod = Resend
|
deliveryMethod = Resend
|
||||||
case smtpUsername != "" && smtpPassword != "":
|
case smtpUsername != "" && smtpPassword != "":
|
||||||
deliveryMethod = SMTP
|
deliveryMethod = SMTP
|
||||||
from = smtpUsername
|
if from == "" {
|
||||||
|
from = smtpUsername
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch deliveryMethod {
|
switch deliveryMethod {
|
||||||
|
|||||||
Reference in New Issue
Block a user