How to separate / validate multiple emails?

Hi,
User enters single or multiple emails in the field. We provide help saying that all emails must be separated by either a comma or semicolon. Not everyone follows that so if user enters [email protected] [email protected] the email is not sent. There can be more than 2 emails.
So is there a way to check that those emails are separated by either comma or semicolon, and if not add it before email is sent?
Thank you

Hi Frank,
I am trying to validate multiple email addresses as well. Currently, my function works for only one email address. Is there a way to extend this function? I am using Oracle 9i.
FUNCTION validate_email_format(p_address IN VARCHAR2) RETURN VARCHAR2 IS
  l_dot_pos    NUMBER;
  l_at_pos     NUMBER;
  l_str_length NUMBER;
BEGIN
  l_dot_pos := instr(p_address, '.');
  l_at_pos  := instr(p_address, '@');
  l_str_length := LENGTH(p_address);
  if ((l_dot_pos = 0) OR (l_at_pos = 0) OR (l_dot_pos = l_at_pos + 1) OR
      (l_at_pos = 1)  OR (l_at_pos = l_str_length ) OR
      (l_dot_pos = l_str_length)) then
    return 'FAILURE';
  end if;
  if instr(substr(p_address, l_at_pos), '.') = 0 then
    return 'FAILURE';
  end if;
  return 'SUCCESS';
END validate_email_format;Thanks

Similar Messages

  • How to Validate Multiple email address in spry?

    How to validate multiple email address in spry framework?
    Spry validate text field can validate one email address only,
    if I the text field is for multiple emails, how can I validate
    it?

    Hello Jackson,
    The Spry Textfield was designed to work with the normal work
    flows that people currently use in most of the forms on the web. We
    tried to prevent any email injection method in the forms therefore
    the validation was designed to stop any multiple email insertion.
    In case you want to insert multiple emails you'll have to
    disable the default email validation and create your own validation
    function, more flexible. You can see a
    sample
    we did for the custom validation trying to validate a password
    strength and confirm the password.
    Cristian

  • How do i add multiple email addresses to my calendar

    How do I add multiple email addresses to my calendar on my iphone

    You can create an email alias at the mail feature at iCloud.com

  • How do i delete  multiple emails at one time from iphone Mail account with iphone 4s?

    how do i delete  multiple emails at one time from iphone Mail account with iphone 4s?

    Better than that!
    http://www.youtube.com/watch?v=fKa-KFjUIGE
    Select a message, hold the move button, deselect the message while still holding the move button.
    A new window appears allowing you to move all messages to the trash.
    Bingo!

  • How do you remove multiple email messages at one time

    I have a iphone 4 and today it started piling up over 4000 undeliverable messages for no apparent reason. I somehow managed to stop the process but I am left with over 4000 messages that I need to delete. How do you remove multiple email messages at one time. I can "mark" all the messages at once but I cannot find the move or delete button to trash the messages. Can some one help me out.
    Thanking you in advance.
    PL

    Just figured it out - I can select multiple messages as you suggested when I am not in full screen mode.
    So once I come out of full screen mode - then the multiple windows open.
    QED

  • How do I delete multiple emails at the same time rather than individually?

    How do I delete multiple emails at the same time rather than individually?

    My mistake
    I was looking at my KB, even tested my suggestion with the command key, and then wrote option
    Barry

  • How can I add multiple email addresses to Address Book?

    How can I add multiple email addresses to Address Book?
    Can it be done from an .xlsx file?

    I have tried that, but the system reads the emails as one long email and I can't find any way of separating them - it ignores spaces, colons and I have also tried putting them through a word doc... still does not work. It works perfectly easily on a PC system!! ( I have just moved to a mac!)
    any ideas would be good
    thanks

  • How do I add multiple email addresses i have received (900) to my address book instead of doing it one by one?

    how do I add multiple email addresses i have received (+ -900) to my address book instead of having to do it one by one?

    Grab them all and drag them to the Address Book.
    Roger

  • How can I add multiple email addresses  from spreadsheet into email?

    how can I add multiple email addresses  from spreadsheet into email?

    I have tried that, but the system reads the emails as one long email and I can't find any way of separating them - it ignores spaces, colons and I have also tried putting them through a word doc... still does not work. It works perfectly easily on a PC system!! ( I have just moved to a mac!)
    any ideas would be good
    thanks

  • How do I copy multiple email addresses from one email sent TO me into a new message?

    How do I copy multiple email addresses from an email sent to me into a new message?

    Are they in the body of the mail?
    Hold your finger down in that mail until the little blue bubble pops up. One of the options should be to select all. Choose that and all will be hilighted. then a pop up comes up to copy, choose that, open your destination and hold your finger down to get the paste dialogue.

  • How can I delete multiple emails on my Samsung Stratosphere at once?

    How can I delete multiple emails on my Samsung Stratosphere at once? I use AOL and when I delete the emails off of my computer, they do not delete from my phone. So I have hundreds of unwanted messages showing on my phone but I have not found an option to delete all messages, only individually. I would also like to be able to clear the messages from my phone without them deleting from my computer. This was super easy with my blackberry and I have not found anything similar on this phone.

    When I go to the trash folder on my Stratosphere, I can check individual emails and then hit "Menu" and "Delete", but if I hit the "Menu" button before selecting any e-mails, then I see the "Delete all" button, but it's greyed out, so I cannot select it.  There's also a "Restore All" button next to the "Delete all" button, and it's also greyed out.  So, currently the only way I can delete the 100's of e-mails in my trash is to put a check mark next to each one, which is painful.  Anybody else have this problem or know of a solution?

  • How do I delete multiple emails on iPad 3rd generation

    How do I delete multiple emails on iPad 3rd generation with 7.0.6 os? There is not an option to delete more than one at a time. I would like to delete all at once.

    It's possible there's an easier way, but this worked for me:
    To “delete all”  emails on ipad
    From each Inbox...
    Tap “Edit”
    Tap “Mark All” then tap “Mark as Read”
    Again, tap "Edit"
    Select first email (adds dot and check mark)
    Put your finger on “Move” without releasing
    With other hand, put finger on first email and Slowly Drag down on email list then release
    (your other finger is still on “Move”)
    Deselect first email (it may take a couple of taps)
    Release “Move”
    Wait a while if you have a large number of emails
    Tap the Trash icon
    All your emails should be deleted

  • How can I delete multiple emails in the mailbox in one time?

    How can I delete multiple emails in one time in the mailbox?

    When inside a folder, listing your emails, tap the Edit button, then select as many emails as you want to then tap trash.

  • How do you manage multiple emails in ios8?

    How do you manage multiple emails from one sender in ios8? In iOS 7 you used to be able to search the sender and then edit, select and move.. I can't seem to find this feature anymore.

    After you have done the search, you can swipe downward slightly on the keyboard and it will disappear and you will see "EDIT" in the bottom right corner. You can tap on that, select whatever emails you want and then you are given the choice to "Mark, Move, Trash, Cancel". It will even verify the number of mails you have selected.

  • How can I delete multiple email messages on my mobile device

    HOw can I delete multiple email messages from my ipad and iPhone

    Hello conniefromtulsa,
    The process for deleting multiple messages is detailed in the iPhone User Guide:
    Delete, move, or mark multiple messages. While viewing a list of messages, tap Edit. Select some messages, then choose an action. If you make a mistake, shake iPhone immediately to undo.
    iPhone User Guide - Work with multiple messages
    http://help.apple.com/iphone/7/
    Cheers,
    Allen

Maybe you are looking for

  • How to create a BI report overview page like ESS overview page.

    Hi Experts, I am implimenting FPN environment with BI portal.I have lot of BI reports in my system.now i would like to create a overview page to combine all BI reports in to one page Like our ESS overview page.can any body pleae suggest  me? Thanks ,

  • Satellite P200D: How to get higher resolution with HDMI on external monitor

    Hi, i have problem with my notebook P200D. I want to use my book with extern LCD in resolution 1680x1050. In analog connection i have reached this resolution, but the quality of the output is bad. I see some waves on the screen of LCD. And colors are

  • Due Date for Emails

    Hi Experts, System: SAP CRM 2007 (WEB UI) I am trying to set-up ERMS Due date for incoming emails. I am trying out the Standard funtionality by using the two services FG_ESCALTIME UT_ESCALDETERM Can any one help me with the Properties that I should s

  • Problem when another user update record.

    Hi All, i am using jdev 11.1.1.5.0 use case: i have create one adf table which is based on vo where a column claimed_by. i have add a where clause in vo where claimed_by is null. default value of claimed_by is null. when user claimed particular recor

  • Getting music videos onto your ipod?

    I've had my 5th gen ipod for a year now and I just figured out how to convert my windows media-using music videos onto my ipod. Only problem, there's no sound. I have the picture but I'm not getting any sound. Anyone have any suggestions? Also, is th