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 (80 points)

1 Answer

0 votes
by (233k 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 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 by Keonip (160 points)
0 votes
1 answer

Hello, Is there a way to send an email notification when a user is added to a group dynamically (with LDAP filter) , it's work only when i add the user manually Thank you

asked Jun 30, 2021 by GG (70 points)
2,880 questions
2,600 answers
6,749 comments
114,571 users