.NET 2.0: Sending Email to a Distribution Group

Good afternoon,

We simply convert our .NET 1.1 web application to .NET 2.0. We have a big problem sending emails.

We use a distribution group (for example, WebDeveloppersGroup) to send emails to all developers in the company. These groups do not 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 must use: email.To.Add ("WebDeveloppersGroup");

At the same time, a System.Format message appears with the following message:

The specified string is not in the form required for the email address.

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

+4
source share
3 answers

I believe that you can interact with Lotus Notes with .net and request it to get the addresses in it xyz@xyz.xyz. I am not very familiar with this, but you can start here:

Good luck

+1
source

You can provide groups with a complete internet email address. Ask your administrator if you do not know how to do this.

+2
source

I should assume here that if it was allowed and works in .Net 1.1, it was because either .Net or the OS added a domain to the name of the group "WebDeveloppersGroup", which is probably " WebDeveloppersGroup@yourdomain.com ", the group did not may be displayed in this way in Lotus, but in order to receive external email at this address, it had to be enabled earlier. To verify this, I simply add the domain name to the address and see if it works.

0
source

All Articles