Skip to content

SendEmailToExchangeServer weird behaviour to be fixed #59

@asserjunnila

Description

@asserjunnila

Is it by design that the same email is sent per every attachment? Meaning that if there is for instance two attachments, the email is sent twice with the different attachments.

private static async Task<Output> SendExchangeEmailWithAttachments(Attachment[] attachments, GraphServiceClient graphClient, string subject, ItemBody messageBody, List<Recipient> to, List<Recipient> cc, List<Recipient> bcc, CancellationToken cancellationToken)

Additionally, the return StatusString should be modified to have for instance String.Join(",", to) in line

StatusString = $"Email sent to: {to}"
as the variable to is of type List<>, hence not returning the recipients correctly on the UI.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions