Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Email::Valid rejecting emails @example.com today

by jcb (Parson)
on Sep 06, 2019 at 02:16 UTC ( [id://11105695]=note: print w/replies, xml ) Need Help??


in reply to Email::Valid rejecting emails @example.com today

These tests are not trying to send email, the part of the code that's failing is the input validation which uses Email::Valid with the MX check enabled.

I found your problem: the example.com domain is not really even supposed to resolve, much less have ever had valid MX records. The validation is working correctly: email addresses on example.com are not valid and you should not be using those in test data that is supposed to pass validation.

I offer a solution: establish a ci-test subdomain on your own domain and use it for your sample customer records.

  • Comment on Re: Email::Valid rejecting emails @example.com today

Replies are listed 'Best First'.
Re^2: Email::Valid rejecting emails @example.com today
by Anonymous Monk on Sep 06, 2019 at 03:04 UTC

    I found your problem: the example.com domain is not really even supposed to resolve, much less have ever had valid MX records. The validation is working correctly: email addresses on example.com are not valid and you should not be using those in test data that is supposed to pass validation.

    Prove it :)

        See RFC2606. :)

        Which part of "RFC2606" dictates how ICANN should manage example.com? It also makes no mention of  mail exchanger record (MX record)

        When I'm guessing I says I'm guessing. Otherwise I check my answers before posting so I'm not posting bad memories/fantasy.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11105695]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-20 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found