0 votes

Hello all,

I'm trying to send an email to an O365 private group after a user account has expired.

I'm currently able to send to single users, but whenever I specify an O365 group address as a recipient, the group never receives the email. I've had IT run a message trace and it seems that it never gets sent to the group, only to individuals.

I've setup email notifications to multiple users before and have never run into this issue.

send_email_cap.png

I thought it might be a problem with the built-in 'send email notification' action trying to send to an O365 group (yes, it is configured to receive internal and external mail), so I tried going the PowerShell route also :

# Email settings
$to = "jdoe@company.com" # TODO: modify me
$subject = "email" # TODO: modify me
$textBody = "Information" # TODO: modify me
$from = "sender@company.com" # TODO: modify me
$bcc = "group@company.com" # TODO: modify me

# Bind to the 'ServiceSettings' container
$wellknownContainerPath = $Context.GetWellKnownContainerPath("ServiceSettings")
$serviceSettings = $Context.BindToObject($wellknownContainerPath)

# Send mail
$serviceSettings.MailSettings.SendMail($to, $subject, $textBody, $NULL, $from, $NULL, $bcc)

I added the target O365 group as the $to, and my own address as the $bcc to confirm the email actually gets sent. I received the email, but the group never received it, and the adaxes log shows no errors.

send_email_cap_2.png

Any pointers would be greatly appreciated.

Thank you!

by (150 points)

1 Answer

0 votes
by (294k points)

Hello,

The script and the action look just fine and should work as expected. The thing is that Adaxes itself does not actually send email notifications. It only sends requests to the specified SMTP server. For troubleshooting purposes, we recommend you to check the SMTP server logs and the Adaxes Event log. Also, you can try sending the notification to the group email address using the Send-MailMessage cmdlet specifying the very same SMTP server used by Adaxes.

Related questions

0 votes
1 answer

We have a 3rd party vendor that we are able to add users based on AD security groups. What I need to do is set a parameter for the number of available licenses and whenever ... the group is 495 I would like an email to trigger telling me to add more licenses.

asked Oct 12, 2022 by A_Pastor (70 points)
0 votes
1 answer

My security team is looking to do a security review and would like the vendor to fill out a questionnaire.

asked Aug 25, 2023 by LarrySargent (20 points)
0 votes
1 answer

Hello, I'm trying to setup a business rule that will send an email to the user when they are added to a group. Under the User Object I don't have an option to Launch ... to get the new group member's email address so I can send a notification to it? Thanks!

asked Dec 1, 2015 by drew.tittle (810 points)
0 votes
1 answer

Hi all, How can I add a user directly to an Entra ID group? I understand it might be possible via CLI e.g. Add-AzureADGroupMember - But is there a built-in GUI method via Business Rules? Thanks, David

asked Oct 2 by dshortall (80 points)
0 votes
1 answer

I am trying to find a way to get an hourly report on locked out user accounts to only be sent if the total amout of locked out account exceeds 10 users. Is this possible in ... a way to setup the logic to check to see how many items are returned in a report.

asked Jun 12 by Vertigo (50 points)
3,588 questions
3,277 answers
8,303 comments
548,089 users