pnp / pnp/pnpframework

[BUG] Send-PnPMail won't send to group addresses

Open
#282 5 comments 0 reactions 1 assignee View on GitHub

@jansenbe is already working on this.

Since Apr 29, 2021.

area: other 🎁 question Stale
Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

Using PnP.PowerShell version 1.5.0

Send-PnPMail will not send emails to group email addresses, only user address. If a group email address is used, it's simply removed. If the group is the only addressee, the command completes successfully, but no email is delivered. If the group is one of many addressees the command shows no errors, the email goes to the user addresses, and the group addresses do not existing on the To: or Cc: lines anywhere.
I have confirmed this happens with M365 Group and Mail-enabled Security Groups. I have reproduced this on an M365 Demo tenant and a customer production tenant.

Here are the groups:
image
Here's the PowerShell:
image
Here's the result:
image
I confirmed the email did not show up in members of the AskHR group, specifically LeeG.

If this is a limitation of the framework I'll update the Send-PnPMail documentation to reflect that.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.