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.


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.


Any pointers would be greatly appreciated.

Thank you!

by (130 points)

1 Answer

0 votes
by (251k points)


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

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

I have a need to BCC a group email address and the from address not the adaxes address. BCC: group@company.com From: UserA@company.com Adaxes server address: adaxes@company. ... the emails where BCCing the group would allow the exchange server to do the work.

asked Sep 13, 2019 by hgletifer (1.3k points)
0 votes
1 answer

So this works for us however we would like to add to check if the last group is at 3 users we would like to send a seperate email but would still like all the above to continue to happen the way it is.

asked Mar 2, 2022 by Keonip (160 points)
0 votes
1 answer

Using the built in 'Deprovision' Custom Command, I would like the person that is trying to Deprovision a user (Help Desk member) be asked who (from a list of existing active ... to leave the question 'blank', which means that no one gets access to the mailbox.

asked Apr 22, 2020 by RayBilyk (220 points)
3,077 questions
2,790 answers
437,195 users