Cedric Aube
Cedric Aube

Reputation: 345

.NET 2.0: Sending email to a distribution group

Good day,

We just converted our web application .NET 1.1 to .NET 2.0. We have a major problem sending emails.

We are using distribution group (eg: WebDeveloppersGroup) to send emails to all the developpers in the company. These groups don't end with '@ something.com'. These groups are created in Lotus Notes, and we cannot access all the individual emails contained in these groups

In .NET 2.0 you cannot use email.To and are required to use: email.To.Add("WebDeveloppersGroup");

This causes a System.Format with the following message:

The specified string is not in the form required for an e-mail address.

Does anyone know how to send to an email group in 2.0 ?

Upvotes: 4

Views: 2196

Answers (3)

Peter T. LaComb Jr.
Peter T. LaComb Jr.

Reputation: 2975

You can give the groups a full internet e-mail address. Ask your admin if you don't know how.

Upvotes: 2

Jason Jackson
Jason Jackson

Reputation: 17260

I have to assume here that if this was allowed and working in .Net 1.1 it was because either .Net or the OS were appending the domain onto the group name "WebDeveloppersGroup", which is probably "[email protected]". The group may not be displayed that way in Lotus, but to receive external email at that address it must have been resolving before. To test this I would just append you domain name onto the address and see if it works.

Upvotes: 0

Ricardo Villamil
Ricardo Villamil

Reputation: 5107

I believe you can interact with Lotus Notes from .net and query it to get you the [email protected] addresses in the group. I'm not very familiar with it but you could start here:

Good luck!

Upvotes: 1

Related Questions