Skip to content

SendEmailToExchangeServer weird behaviour to be fixed #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
asserjunnila opened this issue Mar 17, 2023 · 0 comments · May be fixed by #64
Open

SendEmailToExchangeServer weird behaviour to be fixed #59

asserjunnila opened this issue Mar 17, 2023 · 0 comments · May be fixed by #64

Comments

@asserjunnila
Copy link

asserjunnila commented Mar 17, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant