On May 28, 2011, at 9:34 AM, Jason Brower wrote:
> 
> Is there a way to use the IS_EMAIL feature in web2py on string?  If not, what 
> would be the best way to make sure each string I sent it is an email?

IS_EMAIL()('[email protected]') returns the tuple  ('[email protected]', None), where the 
second member of the returned tuple is None if the test passed, and an error 
message otherwise. You can add arguments to IS_EMAIL() as usual.

See the doctests in gluon.validators for a lot of examples.

Reply via email to