How do I check for a valid email address before sending?
Posted on 2010-09-01
I have an Access database with code that sends out emails, the pointy end of the code looks like;
Set objOutlookRecip = objOutlookMsg.Recipients.Add(clientemail)
objOutlookRecip.Type = olTo
The problem is sometimes people have entered invalid email addresses, and when it gets to the send line, the code breaks.
How do I check BEFORE sending that the email address is valid according to Outlook?