mailsend
mailsend copied to clipboard
How to add multiple headers via -H ?
I tried
-H "Return-Path: [email protected]; Reply-to: [email protected]"
-H "Return-Path: [email protected]" -H "Reply-to: [email protected]"
but I can't figure out how to add both headers. One works just fine
The second syntax is correct. mailsend adds the headers fine however SMTP server/gateway can strip them off, there is no guarantee. Run mailsend in verbose mode to make sure that mailsend is adding them. You can also use gmail smtp server to a gmail address to verify that mailsend is adding them. gmail smtp server does not seem to strip custom headers.
Thanks.