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

1 Answer

0 votes
by (211k 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

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.2k 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 (180 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 by GG (70 points)
0 votes
1 answer

Hi, in our Create User action we have setup a custom binary attribute to upload the staff picture. Is there a way to save the uploaded image to a network share and rename ... out how to save the uploaded image to the share with proper file name. Thank you.

asked Apr 29 by TJ_Umredkar (130 points)
2,607 questions
2,344 answers
6,228 comments
861,149 users