Open bleizg opened 10 months ago
As a workaround, we can specify the XMLName property
ToRecipients: []*elements.ToRecipients{
{
Mailbox: &elements.Mailbox{
EmailAddress: &elements.EmailAddressNonEmptyStringType{
TEXT: "sschmidt@example.com",
XMLName: xml.Name{Local: "t:EmailAddress"},
},
XMLName: xml.Name{Local: "t:Mailbox"},
},
XMLName: xml.Name{Local: "t:ToRecipients"},
},
},
Hello,
First of all, I'm not a very advanced Golang developper. Sorry in advance if the issue is my fault.
I tried to create a new item via the createItem, but I'm getting the following exception:
At least one recipient isn't valid., A message can't be sent because it contains no recipients.
After a lot of different tests, I've finally decided to test your example file against my Exchange server. The DUMP looks like this:
See how the ToRecipients is wrong. It should be
<t:ToRecipients>
right? The same for the childs.I guess the Exchange server does not recognize the recipients because of this incorrect xml formatting.
What do you think?