Hi!
I have an aspx page that reads e-mails addresses from the database (in a while loop) and adds them to the "To" property of the MailMessage object. The total row count for the database records is 2012. When the page gets executed, for some reason the e-mail addresses come out in the right format from the database, but they only reach till about say the first 500 records. After that, the process automatically terminates, since mm.To.Add(new MailAddress(emailaddress)); strips portions of the e-mail address, hence making it an invalid e-mail address.
Does anyone have any ideas as to why this happens?
I've tested rigourously and have found that the only place where the e-mails get truncated after first 500 records, is when it gets to the mm.To.Add(new MailAddress(emailaddress)); part.
Regards
Vik
...
Go to the complete details ...