Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-britton-moj committed Jan 10, 2025
1 parent 3cfece8 commit da33bb3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class MailboxService(
body = ItemBody().apply { content = "Reason for the contact not being created: ${event.reason}" }
toRecipients = listOf(Recipient().apply { emailAddress = toEmailAddress })
}
graphServiceClient.me().sendMail().post(SendMailPostRequestBody().apply { setMessage(message) })
graphServiceClient.users().byUserId(emailAddress)
.sendMail().post(SendMailPostRequestBody().apply { setMessage(message); saveToSentItems = true })
telemetryService.trackEvent(
"UnableToCreateContactFromEmail",
mapOf("emailId" to event.email.id, "reason" to event.reason)
Expand Down

0 comments on commit da33bb3

Please sign in to comment.