Webmail.Send Error

Topics: ASP.NET MVC, ASP.NET Web Pages
Mar 21, 2013 at 3:35 AM
While working on an email related project, I tried using the asp.net webpage WebMail helper.
I got an error "Invalid character in header ';'" which was as a result of adding multiple recipients in my "to" string.
The documentation states
// Parameters:
    //   to:
    //     The email address of the recipient or recipients. Separate multiple recipients
    //     using a semicolon (;).
So i was confused as to why it did not work.
I eventually just replaced ";" with "," in my mail list string and it worked perfect.

So is the problem from the documentation or the code.