muquit / mailsend-go

mailsend-go is a multi-platform command line tool to send mail via SMTP protocol
Other
168 stars 16 forks source link

Return-Path support #31

Closed RNalivaika closed 3 years ago

RNalivaika commented 4 years ago

Hi, does mailsend-go support specifying custom Return-Path address? Thanks

muquit commented 3 years ago

Any custom header can be set with header command. However Return-Path is not one of those headers. It will be over-written by smtp server from From address. If you want to change say, Reply-To header, the option is:

header -name "Reply-To" -value "you@example.com"
RNalivaika commented 3 years ago

Thanks for your comment. I was able to solve this by specifying Return-Path on the smtp server.