Log in

View Full Version : Making message.CC.Add(emailId2.Text) optional



jianxin9
03-28-2008, 09:19 PM
Hi everyone,
I have a form that allows the patron to enter 2 email address but I only want one of them to be required. Currently, if the patron doesn't fill in both fields, they go to an error page when submitting. Any ideas? Thanks!



message.CC.Add(emailId.Text);
message.CC.Add(emailId2.Text);