Email validating in c


29-May-2015 13:16

*(c - 1) == 46) return 0; /* next we validate the domain portion */ /* if the next character is NULL */ /* need domain ! *(domain = ++c)) return 0; do { /* if '.' */ if (*c == 46) { /* if beginning or previous = '.' */ if (c == domain

We could have converted each character back to EBCDIC as we needed to but this was a simpler route (yeah we sometimes take the easy route).

NET Looking for some code that does 'email syntax validation' and 'send mail' tasks.