Basically I have a mailing list function that allows for someone to copy and paste a batch of email addresses into a textbox and send out the message to all of the recipients. The emails go out individually so I put the addresses into an array and loop through them and send the message.
I have all of this in a TRY block, and I will get an error once in a while that the email address was not in the correct format. I have a validate function that makes sure there is an '@' symbol and a period in the address, but something else is causing the address to fail.
To make this short, is there a way that if the following statement fails, it will just ignore and move on to the next address in the loop?
MailMSG.To.Add(TO_array(x).ToString.Trim)
Right now if this fails in the loop I dont know where, and there could have been 1000 emails in the array so I dont know how many got sent and where it broke. I don't care if the inval ...
Go to the complete details ...