Search for invalid e-mail addresses in a function

I have a process that is dying because the email is not valid. I have even read the code of a function:

I'm changing a function which is used in many processes, I just want to check with you guys, I add a condition in the service, just to return a valid address
goremal_email_address LIKE ' % @%. %'; Please let me know if you know a better way to check invalid addresses.
Thank you

FUNCTION f_get_email_addr (
      p_pidm   IN   goremal.goremal_pidm%TYPE,
      p_type   IN   goremal.goremal_emal_code%TYPE
   )
      RETURN goremal.goremal_email_address%TYPE
   IS
      v_result   goremal.goremal_email_address%TYPE   := NULL;
   BEGIN
      SELECT goremal_email_address
        INTO v_result
        FROM goremal
       WHERE goremal_emal_code = p_type
         AND goremal_status_ind <> 'I'
         AND goremal_pidm = p_pidm
         AND ROWNUM = 1
        and goremal_email_address LIKE '%@%.%'; 

      RETURN v_result;
   END f_get_email_addr;
   
 

From the documentation

REGEXP_INSTR

Function

Searches a string or substring for a given occurrence of a regular expression pattern (a substring) and returns an integer indicating the position in the string or substring where the match is found. You specify which occurrence you want to find and the start position.

This function call performs a boolean test for a valid e-mail address in the email column:

REGEXP_INSTR(email, '\w+@\w+(\.\w+)+') > 0

See http://download.oracle.com/docs/cd/E11882_01/appdev.112/e17125/adfns_regexp.htm#ADFNS9999

-------------
Sybrand Bakker
Senior Oracle DBA

Tags: Database

Similar Questions

  • Difference between bouncebacks and invalid e-mail addresses

    I call the export in bulk api REST for a list of bouncebacks for my campaign. In the essay with an address email invalid deliberately (field is valid, but the recipient is not valid) seems Eloqua does not send an email to this email address, but in the contact record, it indicates that the email address is invalid.

    How Eloqua su that the email address is invalid if there is any bounceback? I expected to see a bounceback and then be able to retrieve these data in the export block, but my campaign report shows bouncebacks 0, which is not what I was expecting.

    If Eloqua is something intelligent to see if email addresses are valid or not before making a shipment, there is another filter to export in bulk that I could use to get a list of emails not valid or down instead?

    Thank you, Kevin

    I answered my own question - there was a bounceback for invalid e-mail, it is reported only once on the first test campaign that had an incorrect list of contacts with this email address.

    Subsequent test campaign which contained the same jumped invalid email sending to the wrong e-mail address because it was already marked on the contact as invalid.

  • I have office 2010 & have now lost the spell checker in Outlook Express I also use "Outlook" for additional e-mail address spelling corrector does not not only Outlook Express

    I have office 2010 & have now lost the spell checker in Outlook Express I also use "Outlook" for additional e-mail address spelling corrector does not not only Outlook Express

    When I up graded to Windows 7, my spellchecker didn't work anymore.  Help, thank you, June

  • I do not see the mails for all e-mail addresses that I use

    I use Thunderbird to manage all my email addresses, but due to some changes in the settings now I see only the emails for one of my email addresses (before all of them were displayed in the list). For the verification of the e-mail sent to another email address, I need to select in another list, but I would like to come back the way it was before, so immediately left there was list of e-mail addresses and on the right a - relevant emails for each of them. It seems to me that it should be changed somewhere in the point of the 'View' menu, but I can't find this option.
    Here what I see now

    http://Joxi.ru/LmGeK59iyBNaAl

    Could you please help me?
    Thank you

    Claire

    Press the alt key to display the menu bar.
    In the Menu bar select view-presentation-folder pane

  • Search for ducts took my address bar.

    If I type anything in the address bar, links to bing search for Web sites come to the top. If I make a mistake in the address, I am sent to bing.

    Antivirus scan detects no problem. Ad-aware updates a Win32 file in quarantine, but it doesn't have an impact on the problem of address bar. I have NOT add software add-ons, toolbars tools or winzip on my computer.

    I followed the instructions here: https://support.mozilla.org/en-US/questions/919624 and my problem has been resolved for a few days, now it's back. I have not downloaded anything new, but my computer ran two automatic updates.

    You view the integrated Firefox search bar? In General, the address bar after your selection there. By default, the selection is Google (you will see the small g on a blue square).

    To put your search providers to their values by default (e.g., Google), you can also use this extension as a solution in one step:

    https://addons.Mozilla.org/en-us/Firefox/addon/SearchReset/

    And just in case you explore all categories on the page Add - ons - which you can access by using either:

    • CTRL + SHIFT + a
    • Firefox orange (or the Tools menu) button > Add ons

    -don't forget to click Extensions in the left column to search for 'Community Toolbar' Add-ons that are usually created by Conduit.

    Any improvement?

  • How to claim money for the e-mail address won? I want to know is - that true cancel about money?

    Dear owner, the Department of Treasury and finance United States (FTD) was handed unclaimed money which is held at GMA for Microsoft and Facebook users around the world. And your e-mail address was selected as one of the beneficiaries. Funds which was published by the Department of Treasury and finance is worth billions of Dollars from various sources unclaimed and the details of this Fund are in the ABC News and various newspapers the in United States.And, the main objectives of this program is to asist on disability. Sources of unclaimed funds are:-(very common) Utility, credit deposits balances, refunds of the dividends received, the certificates of shares, pay or bank checks or accounts, bonds, mutual funds accounts life insurance policy product not distributed pay cheques and gift cheques savings accounts safe strong boxes Court payments or deposits deceased royalty payments Estates each beneficiary is entitled to the sum of $96 000.00. And the required documents must be submitted at the request of the claim. Even more, you are to provide the following details for treatment and good documentation. 1. name: 2. residential address: 3 phone numbers: 4 *: 5 Occupation: once your information has been processed, the Department has spend the night your claim via FEDEX check in 24Hrs or transfer through online banking. In addition, any claim double called double counting will be cancel without notice and this e-mail account will be locked/blocked. Once again, congratulations. Sincerely, Richard Parker. GMA for Microsoft and Facebook claims Manager.

    If you are wondering if an email phishing asking enough of your details to allow your identity to be stolen is authentic?

    OF COURSE, IT IS A SCAM!

  • BlackBerry Bold 9000 BlackBerry Smartphones - adding a folder to the home page for each e-mail address

    I have four e-mail addresses on my BlackBerry.  On the desktop, I have a folder in the form of an envelope that says 'Messages' and in which are all messages to all my email addresses are placed.  I have another folder in the form of an envelope with a small globe below showing one of my email addresses, and it includes the messages that came to this address.  Before I had my BlackBerry repaired, I got "mail" general plus four separate files with small globes on them for each of my email addresses.  Please, can someone tell me how to recover these other records yet?

    Go to Setup email. As soon as it opens, press the menu key and select Return Service books.

  • BlackBerry Smartphones for contacts e-mail address

    Is it possible to have several e-mail addresses per contact, if yes, how are you?

    Hi and welcome to the forums,

    Go to the email address to add contact menu key menu key edit.

    Please let me know if you need more information.

    If this isn't the case, please close the message by using the options on the star of the Kudo.

    Thank you!

  • How can I set a catalyst for business e-mail address?

    I would like to know how I can configure an e-mail address to BusinessCatalyst?

    As long as you have a plan enabling it, just go to the Site Settings > email accounts > new e-mail account.

  • I would like to have a single command for entering e-mail addresses when asked.

    the e-mail entered with ease!

    original title: I would like TO HAVE a SINGLE COMMAND FOR IMPUT ADDRESS EMAIL REQUEST

    Hello Aabtmb

    Thank you for visiting the Microsoft Answers site.

    The question you posted corresponds to the AOL email and would be better suited to the AOL community. Please visit the link below to find a community that will support what ask you:

    http://help.AOL.com/help/microsites/microsite.do

  • Apex.mail p_cc for several e-mail addresses which are variable

    This should be a very simple here is my code

    < tt >

    APEX_MAIL. SEND)

    p_to = > ' [email protected] ',

    p_cc = > ' events. CONTACT_EMAIL, [email protected]', <-next does not work because events. CONTACT_EMAIL is a variable

    p_from = > ' [email protected] ',

    p_body = > ' ',

    p_subj = > ' Date of scheduled critical event is close! Alert 1 - Variable try 3rd ',.

    p_body_html = > ' < b > < /b > RESSA team critical event notification! < br > < br > the ' | events. EVENT_NAME | ' critical event is not yet complete! < br > < br >

    Please fill out all the required measures and then mark the event as State finished in order to avoid escalation, thank you.

    < br > < br > a brief review of the event details: < br > < br > < table border = "1" style = "width: 100%" > < tr > ' | events. EVENT_DESC | ' < /tr >

    (< /table > ');

    < /tt >

    so the p_cc line is not error, but this isn't work. If I change this line to ' p_cc = > . ' [email protected] , [email protected] ',

    It will work but I need to use variables and addresses coded e-mail is not difficult. I'm looking for the simplest solution please.

    Any ideas? -Apex 4.2 - pc windows 7

    Hi Richie,

    You must concatenate your variables into a single string with email, separated by commas:

    p_cc-online variable1 | ',' ||  variable2

    Sergio

  • HELP ASAP! Apple for iphone, Mac mail address ID?

    Hello

    I have a mac and one apple on what is my email address ID because I do not have a phone. I'm getting an opportunity I phone 5 but my questions are I receive / send emails, messages and calls (on the apple apps) provided in the phone if I sign in my email address on the phone apple ID. Will the messages and mail and other apps work and not only the application calling, and I have to get a new SIM card and change my apple ID email address in a phone number. Please answer as soon as possible!

    Thank you

    Some things you should check before going through your purchase:

    1 make sure that the phone you buy is not to have my iPhone turned on under iCloud ID of the previous owner if you haven't, you might get stuck with a phone that you can never use. You can check this link: https://www.icloud.com/activationlock/, or you can check it by going to settings > iCloud on the device to verify that a signed in iCloud Apple ID

    2. make sure that the phone is unlocked by the carrier who used the former owner. If the phone is not unlocked, you would only be able to use a SIM card that same carrier. You need a SIM card to activate the device.

    3. the SIM card has nothing to do with your Apple ID, you don't have to change it in any way

    4. ensure that the phone has been erased and then set up with your information by signing in iCloud, Messages, FaceTime, Email & iTunes App Store under settings

    Good luck

    GB

  • iTunes, Radio Radio station to day now invalid e-mail address. Is there a new address?

    I wanted to submit my information to update ITunes radio radio station, but the original email I got is more correct. What are the correct details please - my station is listed, but must flow as url updated to the new stream. The station shows, but cannot connect to the stream.

    The original mail, [email protected] is no longer valid.

    Thank you

    Robert

    After talking to three different people Support from Apple, two not did me not correct information, I learned the current answer to this mystery (thank you, Danielle): https://support.itunesinternetradio.com/hc/en-us

    Here is the direct link to the form to update the station: https://support.itunesinternetradio.com/hc/en-us/requests/new

    They recommend using the form above using Safari. I hope this helps!

  • I have a popup for 3 e-mail addresses whenever I connect.

    I was recently offered an update to connect to my email addresses in gmail. Now I have 3 pop-up windows... 2 more small and regular w/2 email addresses full page showing. How can I go back to the old way of having the most used one rise and then be able to pass? Therefore, the time consumed and irritating.

    I solved this issue on my own... duhhh! Simply click on "more info" next to the pop-up window that told me I was now disconnected... If you have this problem the next time your sign-in page appears, simply click on the same area.

  • Search for invalid installation of windows network

    We have recently acquired a network and want to scan for the incorrect installation of windows.
    Y at - it a tool that can be run from a central location that will provide this information?

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public on the TechNet site. Please post your question in the below link:

    http://social.technet.Microsoft.com/forums/en/category/windowsxpitpro

Maybe you are looking for