Error-Checking Email Addresses, for Intelligent People
May 9, 2007 Ted Holt
Note: The code accompanying this article is available for download here.
Dear Intelligent Colleague: I’ve been less than impressed with the results of keying invalid email addresses into database files, mainly because I’ve had to deal with some of that undeliverable email. I recently wrote a little RPG routine that checks for glaring errors in an email address. The people for whom I wrote it liked it and thought that you might find it helpful too. My routine enforces the following few rules: * No leading or embedded blanks. |