jetmore / swaks

Swaks - Swiss Army Knife for SMTP
http://jetmore.org/john/code/swaks/
GNU General Public License v2.0
847 stars 86 forks source link

[help] using tested working example in .swaksrc #100

Closed redcat42 closed 3 months ago

redcat42 commented 3 months ago

this

swaks --from test@test.com --h-From: '"testing" <test@test.com>' --header Subject:"thisis" --body "atest" -S

works fine with the below in .swaksrc

-t test@duck.com
#-f test@test.com --h-From: '"test" <test@test.com>'
-s smtp.test.com:587
-tls
-au test@test.com
-ap testpass

for convenience id like to add --from test@test.com --h-From: '"testing" <test@test.com>' to .swaksrc config, unable to find the correct syntax,

pl. help/advise

jetmore commented 3 months ago

I'm not sure why you have -f and --h-From: on the same line. This works (note also removing the single-quotes around the From: argument):

-t totest@duck.com
-f ifromtest@test.com
--h-From: "test" <test@test.com>
-s smtp.test.com:587
-tls
-au test@test.com
-ap testpass
redcat42 commented 3 months ago

thanks