Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Bug: E-Mail Verification

2010-03-04
2012-09-18
  • Joachim Beig
    Joachim Beig
    2010-03-04

    Hello!

    I tried to send a mail to an email adress with the format someone.@domain.com
    (note the dot befor the @)

    Te e-mail address is existing and valid, but PHPMailer says "invalid address".

     
  • EdTheHead
    EdTheHead
    2010-03-04

    Hi,

    PHPmailer uses the php function - filter_var($address, FILTER_VALIDATE_EMAIL)
    - if this function does not exist it will fall back on a a regex that can be
    found at
    http://hexillion.com/samples/#Regex.
    In some php versions the filter_var does not return correct values. For some
    valid email address structures you can have a look at
    http://codepad.org/UIrhI5ep and what results
    will be given with this php function.

    Back to the problem you are having: the email address you have given is not a
    valid RFC2822 formatted email address. You can have a look at http://www.rfc-
    editor.org/rfc/rfc2822.txt
    under
    section 3.4.1. Addr-spec specification.

    ... it contains no characters other than atext characters or "."
    surrounded by atext characters ....

    Hope this will help

    Ed