This queue is for tickets about the Mail-Builder CPAN distribution.

Report information
The Basics
Id:
72020
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
mark [...] renmarksystems.com
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
2.05
Fixed in:
(no value)



Subject: Doesn't accept Email::Address object
There doesn't appear to be any way to adjust the definition of a valid email address. Using Email::Valid without allowing for that module's configuration adjustments (fqdn, local_rules, etc) is far too rigid. For example, email addresses without fully qualified domain names (e.g. username@localhost or simply username) are considered invalid. The docs say that an object of type Email::Address can be used. This does not appear to be true. It looks like only plaintext or Mail::Builder::Address object can be used. I was going to try to find a way to use the Email::Address object (in conjunction with Email::Valid configuration options) but Mail::Builder didn't accept this type of object. Is there a way to use Mail::Builder and have some control over what is deemed a valid email address?
This issue has been resolved in Mail::Builder 2.07 Now you can override the the default Email::Valid settings (eg. $Mail::Builder::TypeConstraints{tldcheck} = 0) Cheers Maroš
Show quoted text
> There doesn't appear to be any way to adjust the definition of a valid > email address. Using Email::Valid without allowing for that module's > configuration adjustments (fqdn, local_rules, etc) is far too rigid. > For example, email addresses without fully qualified domain names (e.g. > username@localhost or simply username) are considered invalid. > > The docs say that an object of type Email::Address can be used. This > does not appear to be true. It looks like only plaintext or > Mail::Builder::Address object can be used. I was going to try to find a > way to use the Email::Address object (in conjunction with Email::Valid > configuration options) but Mail::Builder didn't accept this type of > object. > > Is there a way to use Mail::Builder and have some control over what is > deemed a valid email address?


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.