I've written a console application which sends out emails, I'm attaching the emails using the BodyBuilder()
class like so...
builder.Attachments.Add(path + id + ".docx");
If I send these emails using an on prem exchange server, they're attached and viewable fine, if I send them using Office 365, they're sent and received fine, the attachments are attached fine, however the files appear to be corrupt and can not be viewed.
Do I need to do something extra in order to attach them properly when using Office 365 to send the emails?
Thanks,