How to mail

hi,
I am using htmldb mail facility,i have 4-5 checkbox with static values,now on page in which i am using mail option,
it contain a select list in which there is static values of checkboxes,and text ,the data written in this i want to send.
now i have written this cursor
DECLARE
CURSOR U_MAIL IS SELECT MAILID FROM USERINFO1
WHERE (sports =:P13_SELECTLIST or entertainment =:P13_SELECTLIST)
MAILUSER VARCHAR2(40) ;
BEGIN
OPEN U_MAIL;
IF U_MAIL%ISOPEN THEN
LOOP
FETCH U_MAIL INTO MAILUSER;
EXIT WHEN U_MAIL%NOTFOUND;
HTMLDB_MAIL.SEND(
P_TO => MAILUSER,
P_FROM => '[email protected]',
P_BODY => :P13_TEXT,
P_SUBJ => 'HI');
END LOOP;
CLOSE U_MAIL;
END IF;
END;
this works only if a single value of checkbox is checked,if any one check more than one value it wont work,means if in sport if anyone select cricket it works because in that case checkbox onluy have single value,but if anyone select more than one value say cricket and football than checkbox contain cricket;football both value ,now if any one select football from list than how
to get maii id corresponding to it.
please anyone can help what to make change in cursor written above.

hi jason,
I have made correction suggested by you,but it still not working ,please can u go through cursor again and see if any change needed.
DECLARE
CURSOR U_MAIL IS SELECT MAILID FROM USERINFO1
WHERE (instr(':'||:P13_SELECTLIST||':',':'||sports||':')>0)
MAILUSER VARCHAR2(40) ;
BEGIN
OPEN U_MAIL;
IF U_MAIL%ISOPEN THEN
LOOP
FETCH U_MAIL INTO MAILUSER;
EXIT WHEN U_MAIL%NOTFOUND;
HTMLDB_MAIL.SEND(
P_TO => MAILUSER,
P_FROM => '[email protected]',
P_BODY => :P13_TEXT,
P_SUBJ => 'HI');
END LOOP;
CLOSE U_MAIL;
END IF;
END;
This code is still executing for a single checked value.Even if i check cricket,football and select from list cricket it not working.
I was testing it just for sport.In my table sport is a variable of type varchar2(50).
Can u suggest me any other alternative to do it.

Similar Messages

  • How many mails i can send at a time per day using APEX mail system?

    HI,
    I am working on application, when i have written a process to send mail, i have a project where i have to send mail at a time for all the email id's
    given list there are upto 5000 email id's where text body also include certain set of data from a report. thinking at a time 3000 its difficult i divided
    it region wise, but still each region have 2000 odd email id's. during testing when i run the process just 950 mails i could send then i got a error
    saying "ORA-20001: You have exceeded the maximum number of email messages per workspace. Please contact your administrator." so please
    can any one help me to know How many mails i can send at a time per day using APEX mail system?
    Thanks in advance
    Gowthami

    Hi jfosteroracle,
    You are getting the error may be the following reason,
    Check the following,
    Login as ADMIN and Goto -->Manage Instance-->Instance Settings--> Mail-->Maximum Emails per workspace
    Actually this number denotes the Number of mails can be sent per 24 hour for the workspace,It may exceeded.
    It may be the reason.
    Thank you.     
    Regards,
    Gurujothi
    Edited by: Gurujothi on Jun 27, 2012 5:54 AM

  • My e mail  functionality doesnt work any longer on my 3gs phone. has worked perfectly for 18 months...now i just get a blank screen when i click on the mail icon...it still tells me how many mails I have waiting on the icon...any ideas?

    my mail has been working perfectly on my 3gs iphone. I can now longer access the mail after tapping on the mail icon. All i get is a blank screen with a reload icon and a write icon at the bottom, neither of which responds when touched. The icon continues to tell me how many mails I have in my inbox and continues to update.
    Any ideas?
    am on version 4.3.4 operating system.
    Thanks

    I have tried that also, but its still doing the same thing

  • HT1277 How many mail accounts can I configure in "Mail" on my mac book pro ?

    Im trying to open multiple mail accounts in "Mail" but am unable to. How many mail accounts can I configure ?

    http://support.apple.com/kb/TS3276
    http://support.apple.com/kb/HT1277
    http://www.apple.com/support/macosx/mailassistant/
    should be as many as you want
    http://www.dummies.com/how-to/content/adding-a-new-mail-account-in-mac-os-x.html

  • How e-mail is routed between two servers

    Hi ,
    Please anybody tell me how e-mail is routed between two servers , from the software point of view as well as hardware point of view .
    And how Java mail API related to that .
    Thanks,
    Kiz

    If you're looking for a simple answer there isn't one. Here's a place to start.
    http://community.roxen.com/developers/idocs/rfc/rfc974.html

  • How create mail alert without triggering the event.

    1.     SR 3-4924626351: How create mail alert without triggering the event.
    We wanted to send alert mail every 10 days or 15 days or 1 month to a reporting manager of Opportunity Owner with details of that Opportunity. I don’t want to use any triggering of event like the Following. When new opportunity is created When modified Opportunity is saved etc.

    Raju,
    If you don't want to use the triggering event, you will have to do this manually.
    Manually:
    - Create a Web Link on the SR with and embed the mailto: function with the receivers email and subject and body embedded in the url (you can find this link on Google)
    - When this link is clicked, an email window will open with all the details you provide, and you can click the send button to send the email.
    - You will have to do this manually every 10-15 days or whatever is the duration
    Auto:
    - Create a time based workflow on a new Opportunity Created event
    - create a action to send an email notification to the concerned person (details in the workflow properties)
    - This workflow will auto send an email every 10-15 days to the opportunity Manager.
    The time based workflow is the best option I see. Do you see any issue/ concerns with auto generated emails?
    Hope this helps!
    Royston

  • How many mail acct can i have on the cloud

    Hi, How many mail accts. can I have on the cloud, also how I do I change my email acct on the cloud?

    Welcome to the Apple Community.
    You can have 1 main account (your ID) and you can't change it. You can have up to 3 aliases.

  • How does Mail decide which outgoing SMTP server to use?

    I have Mail setup with two accounts - one for home use and one for work.  Each has its own outgoing SMTP server.  My question: how does mail decide which outgoing server to use?  I don't want to mix work and home stuff.
    Specifically, what happens in these three scenarios?
    1) I compose a new mail.  Does it always use the first account's outgoing SMTP server or does Mail look at the recipient's domain and base its decision on that?
    2) I reply to a work email.  Is Mail smart enough to look at my domain or the sender's to know to use the work outgoing SMTP server?
    3) I reply to home email.  Is Mail smart enough to look at my domain or the sender's to know to use the home outgoing SMTP server?
    Any information is much appreciated.
    Tom

    Hi Juergen,
    Thanks for the suggestion - I had to "Customize" the viewable header to include the "From:" ("Von:") line to see who I was sending as.  As far as the "use this SMTP only" checkbox is concerned - they're checked on both my accounts - so I'm not sure how much of an impact that has.  To be honest, I thought this checkbox was meant to limit your outgoing mail (for that account) to this mail server only.  I thought that if it was not checked, Mail will try to send the mail via another SMTP server if the one for this account is not reachable.....after all, why else would Apple allow you to check both servers' "use this SMTP only" checkbox?
    But this is good enough for me - now I can see who i'ms ending as.
    Thanks,
    tom

  • Command how many mails when through the mailstore for a specific domain.

    I need to get info from the maillog to see how many mails when through the mailstore for a specific domain.
    For example all the mails send and received by example.com witch is hosted on that 2005q1 mailserver.
    Anyone know the commands to get it out.

    The data is certainly in the mail.log.
    You may want to start with the perl log parsing script, here:
    http://ims.balius.com/resources/downloads/files/imslog.pl

  • How configure mail.app with webmail, exchange 2003?

    Hi,
    I would like to configure mail.app with webmail, exchange 2003.
    I have certified file of this serverver, and the webmail used https and port 443,listener port.
    And webmail address is https://webmail.abc.com/exchange.
    How configure mail.app with webmail?
    Best regard and I'm pleased to thank you for you kind support in advance.
    nautiluzth

    For the best Mac compatibility with Exchange, I suggest you use Microsoft Entourage, part of Microsoft Office.

  • How can mail on my ipad be using 2.1 gigs

    how can mail on my ipad be using 2.1 gigs eve after I delete almost everything?

    How much space is used by your Other? You may be able to reduce.
    How Do I Get Rid Of The “Other” Data Stored On My iPad Or iPhone?
    http://tinyurl.com/85w6xwn
    How to Remove “Other” Data from iPhone, iPad and iPod Touch
    http://www.igeeksblog.com/how-to-remove-other-data-from-iphone/
    With an iOS device, the “Other” space in iTunes is used to store things like documents, settings, caches, and a few other important items. If you sync lots of documents to apps like GoodReader, DropCopy, or anything else that reads external files, your storage use can skyrocket. With iOS 5/6/7, you can see exactly which applications are taking up the most space. Just head to Settings > General > Usage, and tap the button labeled Show All Apps. The storage section will show you the app and how much storage space it is taking up. Tap on the app name to get a description of the additional storage space being used by the app’s documents and data. You can remove the storage-hogging application and all of its data directly from this screen, or manually remove the data by opening the app. Some applications, especially those designed by Apple, will allow you to remove stored data by swiping from left to right on the item to reveal a Delete button.
    What is “Other” and What Can I Do About It?
    https://discussions.apple.com/docs/DOC-5142
    iPhone or iPad Ran Out of Storage Space? Here’s How to Make Space Available Quickly
    http://osxdaily.com/2012/06/02/iphone-ipad-ran-out-of-available-storage-space-ho w-to-fix-quick/
    6 Tips to Free Up Tons of Storage Space on iPad, iPhone, and iPod Touch
    http://osxdaily.com/2012/04/24/6-tips-free-up-storage-space-ipad-iphone-ipod-tou ch/
    Also,
    How to Clear Message/iMessage Cache on iPhone & iPad And Reclaim Lots of Free Space
    http://www.igeeksblog.com/how-to-clear-message-imessage-cache-on-iphone-ipad/
     Cheers, Tom

  • How many mail ids can be sent using addRecipients()

    how many max. mail ids can be sent to addRecipients(Message.RecipientType type, String addresses)
    method as i have an application which has to send 5000-15000 mails at a time .
    Thanks in advance

    Is this the best developer a millionaire Nigerian can afford?

  • How xfer mail and address book to my new mac puter

    from my g3, running 10.4 to my new mini running 10.4
    how do I move my address book and the mail in the mailboxes? no help in mail help - only tells how to import them not how to export

    Folders You Can Move to Your new Mac
    From the Home folder copy the contents of Documents, Movies, Music, Pictures, and Sites.
    In your /Home/Library/ folder:
    /Home/Library/Application Support/AddressBook (copy the whole folder)
    /Home/Library/Application Support/iCal (copy the whole folder)
    Also in /Home/Library/Application Support (copy whatever else you need including folders for any third-party applications)
    /Home/Library/Keychains (copy the whole folder)
    /Home/Library/Mail (copy the whole folder)
    /Home/Library/Preferences/com.apple.mail.plist (* This is a very important file which contains all email account settings and general mail preferences.)
    /Home/Library/Preferences/ copy any preferences needed for third-party applications
    /Home /Library/iTunes (copy the whole folder)
    /Home /Library/Safari (copy the whole folder)
    If you want cookies:
    /Home/Library/Cookies/Cookies.plist
    /Home/Library/Application Support/WebFoundation/HTTPCookies.plist
    For Entourage users:
    Entourage is in /Home/Documents/Microsoft User Data
    Also in /Home/Library/Preferences/Microsoft
    For FireFox:
    /Home/Library/Applications Support/FireFox
    /Home/Library/Preferences/org.mozilla.firefox.plist
    Credit goes to another forum user for this information.

  • How to mail a report

    hi
    i have a form with option to create a report with mode cache, file, printer, mail etc. now i want to mail the report directly from that form. how can i achieve this?
    thanks

    HI
    also add a "from" parameter (in user parameters) and set the initial value as your source e-mail ID
    This works nicely.
    VPaaru

  • How to mail a local PDF file

    Hi,
    I have local PDF file saved on desktop.
    How to send this file as attacehment in mail.

    Hi,
    see the folowing programm :
    DATA : gf_agb_file TYPE string.
    TYPES: BEGIN OF data_type,
            line(255) TYPE x,
          END OF data_type.
    DATA :  gt_upload TYPE TABLE OF data_type,
            gf_file_upload_lengh TYPE i,      
            agb_content TYPE solix_tab.
    DATA gs_agb_content TYPE solix.
    DATA gs_upload TYPE data_type.
    FIELD-SYMBOLS: <data_x> TYPE x,
                                 <text> TYPE x.
    Load   PDF
    gf_agb_file = '  here access path for PDF'. 
    CLEAR gt_upload[].
    CALL METHOD cl_gui_frontend_services=>gui_upload
       EXPORTING
         filename                = gf_agb_file
         filetype                = 'BIN'
       has_field_separator     = SPACE
       header_length           = 0
       read_by_line            = 'X'
       dat_mode                = SPACE
       depage                = SPACE
       ignore_cerr             = ABAP_TRUE
       replacement             = '#'
       virus_scan_profile      = virus_scan_profile
       IMPORTING
        filelength              = gf_file_upload_lengh
       CHANGING
         data_tab                = gt_upload[]
       EXCEPTIONS
         file_open_error         = 1
         file_read_error         = 2
         no_batch                = 3
         gui_refuse_filetransfer = 4
         invalid_type            = 5
         no_authority            = 6
         unknown_error           = 7
         bad_data_format         = 8
         header_not_allowed      = 9
         separator_not_allowed   = 10
         header_too_long         = 11
         unknown_dp_error        = 12
         access_denied           = 13
         dp_out_of_memory        = 14
         disk_full               = 15
         dp_timeout              = 16
           NOT_SUPPORTED_BY_GUI    = 17
           ERROR_NO_GUI            = 18
         OTHERS                  = 19.
    IF sy-subrc <> 0.
      MESSAGE e057(zsd_eur) WITH 'Fehler bei Load AGB-PDF'.
      EXIT.
    ENDIF.
    LOOP AT gt_upload INTO gs_upload.                 =====>  convert from typ x to typ raw
      ASSIGN gs_upload-line TO <data_x> .
      ASSIGN gs_agb_content TO <text> casting .
      <text> = <data_x>.
      APPEND gs_agb_content TO agb_content.
    ENDLOOP.
    TRY.
      ---------- create persistent send request ----------------------
        send_request = cl_bcs=>create_persistent( ).
        write gf_file_upload_lengh to l_pdf_len.
        document = cl_document_bcs=>create_document(
              i_type    = 'PDF'
              i_hex     = agb_content
              i_length  = l_pdf_len
              i_subject = 'test created by BCS_EXAMPLE_6' ).    "#EC NOTEXT
      add document to send request
        send_request->set_document( document ).
      ---------- add recipient (e-mail address) ----------------------
        recipient = cl_cam_address_bcs=>create_internet_address(
            i_address_string = ' here internet mail adress ' ).
      add recipient to send request
        send_request->add_recipient( i_recipient = recipient ).
      ---------- send document ---------------------------------------
        sent_to_all = send_request->send(
            i_with_error_screen = 'X' ).
        IF sent_to_all = 'X'.
          MESSAGE i022(so).
        ENDIF.
      ---------- explicit 'commit work' is mandatory! ----------------
        COMMIT WORK.

  • How E-mail functionality works with Interaction Center Webclient

    Dear all,
    How the E-mail functionality works with IC Webclient, How can we can send and receive E-mails to customers and internal employees through Interaction Center.
    Does SMTP server required to be involved for this functionality or External Telephony system Vendor iprovides this function.
    What is ERMS? and why we use this in IC Webclient.
    Please educate me to understand the concept of E-mail functionality in IC Webclient.
    Your help will be highly appreciated.
    Best wishes,
    Raghu ram.

    Hello Raghu ram,
    The SAP CRM Interaction Center uses a concept of a shared email inbox for agent teams. This allows customers to communicate with your Interaction Center by sending emails to a corporate email address like service@yourcompany. You typically group your agents together into queues based on a particular product or skillset. Using this concept, customer's don't send emails directly to a specifc agent's email address, and agent's don't send emails directly to each other. That would rather still be done with groupware products like Microsoft Outlook.
    You have three options for routing emails into the CRM Interaction Center. You can push emails real-time to agents via a screen pop using third-party contact-center software like SAP BCM, Genesys, Avaya, and so on. Or there are two options for sending emails into the agent inbox, where the emails are processed in offline mode by agents, technicians, and engineers. You can route emails directly to a specific inbox group/queue by using different emails addreses. Or, you can leverage ERMS to decide where which agents to route the email to based on business rules.
    Please see the various notes mentioned above that appear in the sticky note on top of this forum. For example, there is a nice 85 page FAQ document on the Agent Inbox in note 882653. And ERMS note 940882 is also very useful.
    Regards,
    John

Maybe you are looking for