Skip to content
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

How to set email importance and email-receipt? #183

Open
AgeOfEmpiresII opened this issue May 23, 2023 · 2 comments
Open

How to set email importance and email-receipt? #183

AgeOfEmpiresII opened this issue May 23, 2023 · 2 comments

Comments

@AgeOfEmpiresII
Copy link

Gomail is amazing!! I really love this way of encapsulating the code!!

could anyone help me plz, i dont know how to :

  1. set email importance (this is a very useful setting to me)
  2. set email-receipt

plz help me, thank you so much!

@AgeOfEmpiresII
Copy link
Author

X-Priority: 3

how to set X-Priority ? plz help, thanx a lot!

@wneessen
Copy link

Importance is handled differently with different mail clients. Some expect the "Importance" header, some the "Priority", some "X-Priority" or even "X-MSMail-Priority" and all headers either use a number or string as value. Since this library is not maintained for over 7 years, I suggest you to use https://github.com/wneessen/go-mail instead, since that package even has a dedicated method for setting the Importance headers. https://pkg.go.dev/github.com/wneessen/go-mail#Msg.SetImportance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants