SendAndSaveCopy with ExchangeClient?

With the EWS.EmailMessage, I can use: myMessage.SendAndSaveCopy and the mail will be sent and a copy with be stored in my Office365 “Sent items” folder.

Is it possible to send and save the GemBox mailmessage (to Sent items folder) using ExchangeClient (EWS)?

Thanks

Hi Morten,

The ExchangeClient.SendMessage(MailMessage) method should already behave like that (as SendAndSaveCopy).

Can you please try it out and let us know if you get a different result?

Regards,
Mario

You’re right - sorry.

But how do I then send it without saving it to Sent items? EWS.EmailMessage has two methods…

myMessage.Send
myMessage.SendAndSaveCopy

Hi Morten,

We just added ExchangeClient.SendMessage(MailMessage, bool) overload method.
Please try again with this NuGet package:

Install-Package GemBox.Email -Version 17.0.1248-hotfix

Note that this is a hidden pre-released version, to install it you’ll need to run the above command on the NuGet Package Manager Console (Tools → NuGet Package Manager → Package Manager Console).

Does this solve your issue?

Regards,
Mario