in reply to Re^2: Email::Valid, what am I doing wrong here?
in thread Email::Valid, what am I doing wrong here?

And thus we discover one more thing Google does wrong. :) In this case you're talking to an application which has chosen its own limited filter heuristics. Passing the address to any mail transport agent should work. I just checked my own gmail address with extra spaces added sent from mail on the command line and it turned up in my box just fine.

  • Comment on Re^3: Email::Valid, what am I doing wrong here?

Replies are listed 'Best First'.
Re^4: Email::Valid, what am I doing wrong here?
by bart (Canon) on May 17, 2009 at 08:22 UTC
    The reason why Google can do this, and make this rejection useful, if because Gmail is an interactive application. The spaces in an entered email address are indeed likely a mistake by the user, and he's given a chance to fix it, either way.

    But if the address was passed along to a mail server in batch, then it'd better accept it!

      Sincere thanks for the wisdom and for your patience with a novice.

      and he's given a chance to fix it, either way.

      Nope. foo @ example.org is misinterpreted as "foo "@example.org.

      Update: Oops, nevermind, that test wasn't done with gmail.