xhit / go-simple-mail

Golang package for send email. Support keep alive connection, TLS and SSL. Easy for bulk SMTP.
MIT License
650 stars 102 forks source link

Adding Return-Path header is not effect #112

Open abilican opened 1 week ago

abilican commented 1 week ago

Hello;

Thank you for this awesome package, I am using it with pleasure. But I have an issue and I have a problem with Return-Path. I want to add custom Return-Path header using SetReturnPath function. When I examine the sent email headers, I see that it is not working. It is the same with From address. I tried to add using AddHeader func but it is blocked for Return-Path. How do you use returnPath local variable? I examined the code and I've never seen it used. Could you please advise me on how to solve the issue?