Re: [GENERAL] Build in function to verify email addresses - Mailing list pgsql-general

From Michael Nolan
Subject Re: [GENERAL] Build in function to verify email addresses
Date
Msg-id CAOzAquLH-wFG2+0YQ4cLGeu3DtmonrYOfMgAbTL8chmCmxOXSQ@mail.gmail.com
Whole thread Raw
In response to [GENERAL] Build in function to verify email addresses  (Nick Dro <postgresql@walla.co.il>)
List pgsql-general


On Thu, Nov 16, 2017 at 1:56 AM, Nick Dro <postgresql@walla.co.il> wrote:
I beleieve that every information system has the needs to send emails.
Currently PostgreSQL doesn't have a function which gets TEXT and return true if it's valid email address (xxx@YYY.com / .co.ZZ)
Do you believe such function should exist in PostgreSQL or it's best to let every user to implement his own function?

There's a world of difference between an email address that is well-formed and one that actually works. 

In the systems I administer there's a lot of time spent dealing with bounced mail to make sure that the email addresses we have actually reach someone, hopefully the intended target.  And in the US, bulk emailers also have to deal with the CAN-SPAM act, which specifies procedures that must be in place to allow easy administrative options to remove one'e email address from mailing lists. 

Procedures to verify that an email address works and to administer its use under rules like CAN_SPAM cannot exist solely within the database itself.  And as others have noted, what makes for a 'well-formed' email address has always been a bit complicated. 
--
Mike Nolan

pgsql-general by date:

Previous
From: Andreas Joseph Krogh
Date:
Subject: Re: [GENERAL] Build in function to verify email addresses
Next
From: Matt Zagrabelny
Date:
Subject: Re: [GENERAL] expanded auto and header linestyle double