-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incomplete functionality for Return-Path(MAIL FROM) handling #202
Comments
Unfortunately this won't be fixed since the maintainer has sadly passed away. You might want to consider checking wneessen/go-mail instead. |
@grigorijski What do you mean by you can set return path using sender? Isn't sender and from the same thing? Were you able to set return path? I don't care if the end user sees it. |
No. Envelope-From and Mail Body From are different things. Envelope-From is what is used in the SMTP protocol communication between client and server. It will be used as Return-Path e. g. if the mail cannot be delivered. Mail body From is the address that is shown by the mail client on the receiving end. These can differ. Let's assume you have an automatic mailing system that is connceted with your CRM. You send a mail to |
Got it. So if I set the I basically looked at this piece of code and assumed that the
|
In wneessen/go-mail we do it similarly, but we provide direct access methods to |
Got it, thanks for sharing. Tbh I checked out your library but it seems too complicated and frankly has an API spec I don't like. This library is just clean and simple and works mostly. I wish someone made a fork with it and maintained it. |
Fair enough. Out of curiosity, and we can keep this out of this thread if you like... We're always looking for feedback on how to improve. What exactly makes it "too complicated" and what "API specs" to you not like? Feel free to send me a mail directly at github-gogomail-issue-202.hym3u@nop.li, so we don't spam this thread any further. If you don't wanna elaborate, that's also totally fine. |
Hi, sorry for the delayed response. I saw this when I was half asleep and forgot to respond. I would have much rather prefer the same API spec as the original gomail and new functionalities built on top of that. Also, I personally do not like this builder type API design, not everything has to be |
Fair enough. Thanks for the feedback. Just as a sidenote, I recently introduced a "QuickSend" method that doesn't require all of the "New" and "With" stuff. Maybe that's something you are looking for: https://pkg.go.dev/github.com/wneessen/go-mail@v0.5.3-0.20241122153610-ead4067f2dd8#QuickSend |
Currently it is possible to setup MAIL FROM address (Return-Path) using "Sender" header. But in this case "Sender" header also is passed together with other headers in DATA block and is received by message recepient, which should not be the case.
Propose that separate header must be used for "Return-Path" setting so only "Return-Path" or both "Return-Path"/"Sender" could be setup
The text was updated successfully, but these errors were encountered: