Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8408419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:37:36+00:00 2026-06-09T23:37:36+00:00

How do I send mail to a specific user group (using Active Directory )?

  • 0

How do I send mail to a specific user group (using Active Directory)?

As for now I have defined an interface like this:

public interface IMailingService {
    void SendMessage(String from, String to, String subject, String body);
}

with implementation like this:

public class MailingService : IMailingService {
    public void SendMessage(String from, String to, String subject, String body) {
        using(var client = new SmtpClient()) {
            client.SendAsync(
                from: from, 
                recipients: to, 
                subject: subject,
                body: body,
                userToken: "hahaha!"
            );
        }
    }        
}

I’m using an smtp client in conjunction with the following configuration.

<system.net>
    <mailSettings>
        <smtp deliveryMethod="Network" from="user@domain.com">
            <network host="host" port="25" userName="username" password="password" />
        </smtp>
    </mailSettings>
</system.net>

But it is hard for me to understand which service should present the behavior, user service which handles ldap-connectionsor a separate service (following the SOC principle)?

Any examples?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:37:37+00:00Added an answer on June 9, 2026 at 11:37 pm

    Sending an email to a user group should work the same way as sending to an individual user.

    User groups usually have their own email address and then the Active Directory will handle the rest.

    Unless I am misunderstanding your question here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a function to send a mail to specific user? What I
How to specify 'git send-email' to send mail on a specific patch? I have
I get this error when I try to send an e-mail to a specific
I am using PHP Swift Mailer to send Mail to my user, whose email
I'm trying to send mail using phpMailer. It's my code: <?php require_once('phpmailer/class.phpmailer.php'); $mail =
i'm trying to send mail in this way: Properties props = new Properties(); props.setProperty(mail.transport.protocol,
I need to send mail daily using smtp and asp.net.
I could send mail from my Activity when i have already configured with any
I am trying to send mail via SMTP in Perl. I have written a
I am trying to send mail using SmtpClient() within my Winforms VB.Net program Here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.