muquit / mailsend

A program to send mail via SMTP from command line
Other
294 stars 68 forks source link

How to add multiple headers via -H ? #83

Open ovizii opened 8 years ago

ovizii commented 8 years ago

I tried

-H "Return-Path: em@ail.tld; Reply-to: em@ail.tld" -H "Return-Path: em@ail.tld" -H "Reply-to: em@ail.tld"

but I can't figure out how to add both headers. One works just fine

muquit commented 8 years ago

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.