Hi Brian,
Thanks for posting in the community!
From your description, you used the "System.Web.Mail.MailMessage" buildin
components to send mail. This works well when you set the MailMessage's
"To" address as individual address( the
xx@xx.xx format?). However, you
found it didn't work if you use some certain distribute group's name as the
address to send the mail ,yes?
If there is anything I misunderstood, please feel free to let me know.
As for this problem, is the "group name" string you mentioned just the
certain group's alias? For example a certain newgroup or some other groups
such as Yahoo group?
If so, I think the alias (a friendly name) didn't work because each email
be sent need a specifyed "To" address, which need to be a valid address
which is formated as "xx@xx.xx". The alias for friendly name is just used
to help user to remember it. And the mapping between the alias and their
actual address are usually done by some Mail client tools such as outlook
or some other web access tools.
So we need to specify the actual name of the group to the "To" member of
the MailMessage if we want to send a mail to that group.
And here is a FAQ list on the "System.Web.Mail" components,
#System.Web.Mail FAQ
http://systemwebmail.com/faq.aspx
There are detailed description on how to define friendly name(alias) for
MailMessage's "From" or "To" field:
#2.4 How do I change the FROM address to a friendly name?
http://systemwebmail.com/faq/2.4.aspx
#2.5 How do I change the TO address to a friendly name?
http://systemwebmail.com/faq/2.5.aspx
Please check out the above items. If you have anything unclear, please feel
free to post here.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx