Skip to content

MessageBody text needs to be xml encoded #368

Open
@tomika

Description

@tomika

Following code :
const message = new EmailMessage(service);
message.Subject = "Subject";
message.Body = new MessageBody(BodyType.Text, "Hello");
message.ToRecipients.Add("[email protected]");
message.SendAndSaveCopy();
results e-mail with empty body.
The reason is: the program doesn't escapes the body text when sending in soap message.
As I saw there is some other issues open in connection with string parameters unescaped, maybe the reason is the same.
Is it by design that the user of the library has to pass string parameters xml encoded?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions