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)
0

Hello,

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.

0

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

0

Hello,

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.

0

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 (294k points)
selected by
Best answer

Hello,

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, 2023 by LarrySargent (20 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)
0 votes
1 answer

feature request: Allow scheduled reports to have any email address as a recipient.

asked Nov 24 by PaulPCGuy7 (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 (150 points)
3,589 questions
3,278 answers
8,303 comments
548,134 users