AZGroups.com

Bringing together Arizona Technology Users And Enhancing the Careers of Developers
Welcome to AZGroups.com Sign in | Join | Help
in Search

MailMessage object in .NET 2.0

Last post 06-20-2006, 10:02 AM by timheuer. 1 replies.
Sort Posts: Previous Next
  •  06-19-2006, 3:03 PM 435

    MailMessage object in .NET 2.0

    In 1.1 we were able to send to an email group using :

    MailMessage em = new MailMessage();

    em.To = "Group";

    The group name does not contain a @ character, so they are like: +EM FAA-xxx

    In .NET 2.0 you cannot use em.To =

    and are required to use:  email.To.Add("Group");

    This causes a System.Format exception to occur 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 ?

     

  •  06-20-2006, 10:02 AM 439 in reply to 435

    Re: MailMessage object in .NET 2.0

    I see you may have it fixed, but here are two good references if you weren't aware of them:

    http://www.systemwebmail.com
    http://www.systemnetmail.com

    -th
    http://timheuer.com/blog
  • View as RSS news feed in XML
    Powered by Community Server, by Telligent Systems