0 votes

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.com

I need to send the group address and not everyone in the group because there are over 3000 addresses and it taking 2 days non stop to send the emails where BCCing the group would allow the exchange server to do the work.

by (1.3k points)


Unfortunately, there is no possibility to specify BCC using the built-in Send e-mail notification action. You will need to send the notification using a PowerShell script. You can use the IAdmServiceMailSettings::SendMail method.


That is how I’m trying to do it. I’m not sure how to setup the Scheduled task to send the Email.



For information on how to create Scheduled tasks, have a look at the following tutorial: https://www.adaxes.com/tutorials_Automa ... gement.htm.

If you still have issues creating the task, please, provide us with all the possible details regarding the desired behavior (a live example would be much appreciated) and we will help you.


I want to BCC a group email address using a powershell script. where the sending address is different than the default Adaxes one. every Wednesday

BCC: Group@company.com
From: sender@company.com
Subject: email
Body: Information

1 Answer

0 votes
by (258k points)
selected by
Best answer


It is not possible to specify an email notification recipients only in the Bcc field, the To field must also be populated. To send the notifications, use the below script. In the script:

  • $to - Specifies the recipient's e-mail address.
  • $subject - Specifies the subject of the email.
  • $textBody - Specifies the body of the email.
  • $from - Specifies the address from which the email will be sent.
  • $bcc - Specifies a list of comma separated email addresses that receive a copy of the mail but are not listed as recipients of the message.
# 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)

To run the script in your Scheduled Task, use the Run a program or PowerShell script action. Finally, the task will look like the following:

Related questions

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 by LarrySargent (20 points)
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 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 ... , and the adaxes log shows no errors. Any pointers would be greatly appreciated. Thank you!

asked Aug 12, 2021 by lw.fa (130 points)
0 votes
1 answer

Is it possible to create a scripted action to create a new scheduled job, and for the job to delete itself when complete? Scenario is an over-night callout that requires a support user ... e.g. Will not run between 9am - 5pm, but will between 5pm - 9am. Rgds

asked Dec 18, 2012 by firegoblin (1.6k points)
0 votes
1 answer

Hi, we're receiving the below error when trying to add SMTP addresses to Office365 mailboxes from Adaxes. I've raised a ticket with support, but thought I'd ask ... , please see exception members for more information. Any help would be great. Thanks Gary

asked May 29, 2020 by gazoco (490 points)
3,177 questions
2,880 answers
508,878 users