.NET 2.0:向通讯组发送电子邮件
美好的一天,
我们刚刚将 Web 应用程序 .NET 1.1 转换为 .NET 2.0。 我们在发送电子邮件时遇到了重大问题。
我们使用通讯组(例如:WebDeveloppersGroup)向公司中的所有开发人员发送电子邮件。 这些组不以“@something.com”结尾。 这些组是在 Lotus Notes 中创建的,我们无法访问这些组中包含的所有单独电子邮件。
在 .NET 2.0 中,您不能使用 email.To,而需要使用:email.To.Add("WebDeveloppersGroup");
这会导致 System.Format 出现以下消息:
指定的字符串不是电子邮件地址所需的格式。
有谁知道如何在2.0中发送到电子邮件组?
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以为小组提供完整的互联网电子邮件地址。 如果您不知道如何操作,请询问您的管理员。
You can give the groups a full internet e-mail address. Ask your admin if you don't know how.
我相信您可以从 .net 与 Lotus Notes 交互并查询它以获取 [email] protected] 组中的地址。 我对此不太熟悉,但您可以从这里开始:
http:// /www.codeproject.com/KB/cs/lotusnoteintegrator.aspx
IBM Lotus Notes 和 .NET
祝你好运!
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:
http://www.codeproject.com/KB/cs/lotusnoteintegrator.aspx
IBM Lotus Notes and .NET
Good luck!
我必须在这里假设,如果在 .Net 1.1 中允许这样做,那是因为 .Net 或操作系统将域附加到组名“WebDeveloppersGroup”上,这可能是“[电子邮件受保护]”。 该组在 Lotus 中可能不会以这种方式显示,但要在该地址接收外部电子邮件,它之前必须已经解析过。 为了测试这一点,我只需将您的域名附加到地址上,看看它是否有效。
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.