mhewedy / ews

Go package wrapper for Exchange Web Service (EWS). Supports NTLM and more! Used in mego https://github.com/mhewedy/mego
Other
42 stars 27 forks source link

Could I send email in html type? #11

Open na1k3 opened 2 years ago

na1k3 commented 2 years ago

Hi there! Question up here. Thank you!

mhewedy commented 2 years ago

sorry for late response ...

according to docs of ews, you can https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/bodytype-bodytypetype

You can use code as the following and set the body type to HTML

https://github.com/mhewedy/ews/blob/master/ewsutil/send_email.go#L8:L27

You also welcome to submit a PR for a utility method in ewsutil to allow send HTML emails