Read email using APEX

Hi,
Now APEX has some good API to send out emails -- but any idea how to retrieve emails from mail server using APEX or pl/sql packages?
Basically something to retrieve emails to database table and use APEX to build a UI to read them.
Thanks!
thcheng

Hi,
have a look at http://sql-plsql-de.blogspot.com/2007/12/emails-aus-einem-postfach-abrufen.html
It describes a Java stored procedure to read emails which is wrapped by a PL/SQL wrapper. The posting is written in German, but you can use a translation service like Google to read it in English.
Patrick
My APEX Blog: http://www.inside-oracle-apex.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://apexplugin.sourceforge.net/ New!

Similar Messages

  • Can't read email using my primary apple email account

    Ok, I'm new to this forum but here is my problem
    Usually I can read Email using my primary Apple E-mail account BEFORE I updated my Ipad into IOS 8.
    After I updated my Ipad into IOS 8 (non-jailbreak and from IOS 5 jailbreak), My Ipad says that I need to sign up an Icloud email to use the Mail App.
    Then I can't use my Primary Apple Account as an E-mail anymore. When people send a mail to my primary apple account, I cant read it because I cant read emails using my Primary Apple Account anymore.
    When I signed in with my primary apple Email account and opened my Mail App, It used my Icloud email instead my primary apple email.
    I tried everything Include making an email aliases but my primary apple email uses @Yahoo.com and I can only use aliases of @Icloud.com
    Can someone please help me so I can read E-mails when people send an Email to my primary apple account? Because I need to see those subcription mails and change my password of my online game account(<- This one is URGENT).
    And sorry for my bad English because I'm Indonesian.

    Welcome to discussions,
    go to settings/mail, contacts.../your mail account/outgoing mail server settings/ and see if you put in the needed password to access your mail server.
    Also check out this help article about your issue for more tips: http://support.apple.com/kb/TS2770

  • How to read emails using javamail

    hello friends
    well i am working on a project on phishing for that i had usinf javamail to read out the mails while i open my any email account while i working on the net .
    actually what i want is whenever i open my account my program could detect the mail and it will it work after that
    so can anyone please help me out in doing this means my first problem is how to get my program get linked with that so that everytime i opem my email account (not specific) i can use the message stuff written in that for my further use
    please help me guys i really need help
    please reply as soon as possible
    thanks

    i could not understand your problem exactly.
    if you mean you want to check the new messages count: you can simply used
    int newMessages = folder.getNewMessageCount();if you are reading mails first time using javamail.
    see http://itoday.wordpress.com/2007/04/08/sending-mail-using-javamail-apis/
    if you mean something else ... please let me know
    asif shahzad
    Edited by: asifsh7 on Jul 22, 2008 8:53 AM

  • My font size changed in Firefox when trying to read email using yahoo email. I now have to use explorer to read my mail. can you tell me how to return back to the readable size font. thank you

    I have been using firefox for years to read my email. recently the size of text became small and hard to read. I would like to get the text size large again, so I don't have to use the other browser. I have a att yahoo email account and subscribe to at&t uverse for internet service.

    I tried both of your suggestions and neither one worked. I found the solution by clicking on the "View" button, then "Reset". This put my email back to the original font/text size. Somehow the screen had been Zoomed in, so to change it, follow the instructions above.

  • Firefox keeps blocking my ability to read emails using chtah. It doesn't start like this but it eventually blocks the code. this interferes with my email.

    Firefox blocks the code CHTAH, which is used by many of my email contacts to load pictures. This is not something that happens right away but over time. I need to delete Firefox and all saved information and reload the software in order to read my email. This has happened with several versions of Firefox and several versions of antivirus products.

    Reset the zoom level for each of those websites. <br />
    See this: https://support.mozilla.com/en-US/kb/Page+Zoom
    If you hold the Ctrl key and use the scroll wheel to move down the page, you will changed the zoom level of that domain.
    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • Reading email using abap program

    Hi All,
    I have a requirement to read inbox mails through abap program.
    Also from address, to address, subject.
    Could someone help me  !!
    Thanks in advance,
    Venkat
    Moderator message : Requirements dumping not allowed, show the work you have already done.  Thread locked.
    Edited by: Vinod Kumar on Jan 30, 2012 11:37 AM

    Hi,
       Please find below the tables if you are usinG BI 7.0
    For 3.5 also they are almost similar...
    Getting Details regarding DSO
    1) RSDODSO
    2) RSDODSOT
    3) RSDODSOIOBJ
    4) RSDODSOATRNAV
    Getting Details regarding InfoObjects
    5)  RSDIOBJ
    6)  RSDIOBJT
    Getting Details regarding DataSource
    7)   RSDSSEG
    8)   RSDS
    9)   RSDST
    10) RSDSSEGFD
    Getting Details regarding Transformation
    11)   RSTRAN
    12)   RSTRANFIELD
    13)   RSTRANRULE
    Getting Details regarding InfoCube
    14) RSDDIME
    15) RSDCUBE
    16) RSDCUBEIOBJ
    17) RSDDIMEIOBJ
    18) RSDCUBET
    19) RSDDIMET
    Getting Details regarding MultiProvider
    20) RSDCUBEMULTI
    21) RSDICMULTIIOBJ
    Getting Details regarding Queries
    22) RSREPDIR
    23) RSZELTTXT
    Based on the above tables ,we can write our own generic program based on your needs.....
    These tables help you a lot in order to achieve that.
    Regards
    vamsi

  • Sending Mails Using APEX 4.2

    Hi All
    I am in need to send emails using APEX 4.2. I have seen under page processing there is option called Send Email. But really not sure how to make use of it. My requirement is to trigger a mail on employee's birthday. Following is the screenshot.
    Can anyone help me on this. Any reply would highly be appreciable.
    Process Type
    Process Attributes
    Process
    Messages
    Process Conditions
    Create Page Process - Process Type
    Cancel 
    Next
    Page:
    3 - Edit AR Employees
    Select the category of the process you wish to create:
    Select the category of the process you wish to create:
    PL/SQL
    Reset Pagination
    Plug-ins
    Session State
    Data Manipulation
    Web Services
    Form Pagination
    Send E-Mail
    Close popup window
    Run On Demand Process

    Hello,
    First you need to write a procedure to send e-mails. Please find sample code below to send e-mail to manager, if employee birthday is today
    CREATE OR REPLACE PROCEDURE pr_send_birthday_alerts
    IS
    BEGIN
      /* if V_APP_USER is null, procedure is being executed as job
      set security context */
      IF v('APP_USER') IS NULL THEN
      wwv_flow_api.set_security_group_id;
      END IF;
      -- Trigger mails if employee birthday is today
      -- Send mail to Manager email address
      /* Please change with actual table and column values */
      FOR i IN (SELECT emp.name emp_name, manager.email manager_email, manager.name manager_name FROM t_employee emp, t_employee manager WHERE emp.manager_id = manager.emp_id AND TRUNC(emp.birth_date) = TRUNC(SYSDATE))
      LOOP
      /* Send mail */
      /* Please change Subject and Body according to your need */
      APEX_MAIL.SEND(
      p_to        => i.manager_email,
      p_cc => NULL,
      p_from      => '[email protected]',
      p_subj      => 'Today is '||i.emp_name||' birthday',
      p_body      => NULL
      END LOOP;
      -- push all emails from queue
      APEX_MAIL.PUSH_QUEUE;
    END pr_send_birthday_alerts;
    Next you need to schedule a job which will run above procedure everyday to Send Birthday alerts. Please find sample code below to schedule a procedure to run as Job.
    BEGIN
      /* Change Start date according to your requirement */
      DBMS_SCHEDULER.CREATE_SCHEDULE (
      schedule_name          => 'sch_every_day',
      start_date             => TO_TIMESTAMP_TZ(TO_CHAR(SYSDATE,'YYYY-MM-DD')||' 06:00:00 +02:00','YYYY-MM-DD HH:MI:SS TZH:TZM'),
      repeat_interval        => 'FREQ=DAILY;'
      DBMS_SCHEDULER.CREATE_JOB (
      job_name                => 'job_every_day',
      schedule_name           => 'sch_every_day',
      job_type                => 'STORED_PROCEDURE',
      job_action              => 'pr_send_birthday_alerts',
      enabled                 => TRUE
      COMMIT;
    END;
    So everyday in morning 6:00 A.M. GMT+ 2, system will check if any employee birthday is today and will send alert to his/her manager.
    Please note that these code is not tested.
    Regards,
    Hari

  • I am unable to open encrypted emails using webmail and a CAC reader.  It says "content can't be displayed because the S/MIME control isn't available."  I'm using a Macbook Pro with 10.10 OS and have tried both Safari and Chrome.

    I am using a Macbook Pro with OS X Yosemite 10.10.2.  I am unable to open encrypted emails using webmail.  I have verified my certificates are loaded in the keychain for my military common access card while using a CAC reader.  When I try to view the message it gives me the error saying "content can't be displayed because the S/MIME control isn't available." 

    I am using a Macbook Pro with OS X Yosemite 10.10.2.  I am unable to open encrypted emails using webmail.  I have verified my certificates are loaded in the keychain for my military common access card while using a CAC reader.  When I try to view the message it gives me the error saying "content can't be displayed because the S/MIME control isn't available." 

  • Read date from an email using sender mail adapter.

    Hi All,
    I am working on a scenario, which reads emails from mail box using POP3 protocol and Mail adapter. How to get the mail attributes like received date? I have to take some decisions based on that field.
    Also can we tell to move that mail to different folder in that mail box after successfully read? it is like archiving folder in that mail box.
    Regards,
    Hari

    Hi Hari,
    You use IMAP4 (Internet Message Access Protocol) to retrieve e-mails from a folder of an e-mail server.
    You use POP3 (Post Office Protocol Version 3) to retrieve e-mails from an e-mail server.
    AFAIK,  you have to use IMAP4 protocol for moving email to another folder are reading email successfully. And i don't think POP3 will allow this functionality.
    Regarding email date , If you maintain Message protocol as XIPAYLOAD you will receive all header details(Subject , TO ,FROM ,CC,DATE ,etc ) in your payload.
    Thanks
    Hari.

  • Can I use APEX directly read/sync with the Oracle Tables ?

    We have a Oracle Database to manage the design data.I am trying to setup a web-based front end using APEX to manage & monitor the parts ordering & logisitics.I want to drive the master data directly from the database without any export or data transfer ? Can I directly read or Link an Oracle tables from APEX application.
    Also,once this is setup,I am looking for setting up some data entry fields to enter Purchasing & Logistics information.Hope I can achieve this using APEX !
    Look forward for the appropriate response.
    Thanks,
    Sham

    Tony,
    Thanks & Appreciate your Quick response.
    Glad that I can use the existing Oracle db schema with APEX.I am not sure if there is any information as how I can connect or link my production schema to the APEX ! I was able to import .csv files & use XL data to create some test databases & play with APEX..but,I did try to go thru most of the instructions & guides to find how to use the production oracle tables,but,could not find anything particular...Please send me a link or material info.
    I suppose I can then use which ever attribute or table data that is required to build the queries ! I am planning to use the production data to build the ordering & logistics application using APEX.Assume I can create new fields & columns for parts that will be ordered & capture/record the purchasing information like Purchase order numbers/Supplier Info/Target Delivery dates etc...
    - Am on very tight schedules to get this application up & running ! Is there any support team or a technical support team that I can call upon if I need any help ?
    Thanks,
    Sham

  • Using Mailx to read emails - Simplify the view

    Hi,
    I've just started using the mailx program, from heirloom-mailx in the core repo, to send and read my emails. This is great, no more extra cruft that I have to wait load and I can pipe any results of commands straight to my inbox. My queery is regarding the format of messages. Is there anyway I can not display the headers of emails when I read them?
    I dont mean the "headers" that are displayed when the program is run to show the new messages, I mean the info when you open a message, like "From", "Delivered-To", "Return-Path" etc. Some of these are useful, but some are so long that my message starts right down the bottom of the screen. The best solution would be to customise this to display only "From", "To" "Date" and then the message, but as I've just seen all that on the original screen, I could manage without.
    Thanks for your help.
    J.
    Tl;Dr
    I just want to read emails, can I display just some of the email header, or none, and then the message in the mailx program?

    Doesn't SAS have a direct connection library that does not use ODBC? maybe their pass-though access:
    http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001405615.htm

  • HT1918 Hello!  Staff of E4 Group JSC use Apple devices for call, reading email and calendars. When the user open event in calendar of iPhone or iPad, he does not see attachments (picture №1, picture №2). But it is possible on Blackberry (picture №3).

    Hello!
    Staff of E4 Group JSC use Apple devices for call, reading email and calendars. When the user open event in calendar of iPhone or iPad, he does not see attachments (picture №1, picture №2). But it is possible on Blackberry (picture №3). How user of Apple can see these attachments? Recommend please any apps for it.

    Hello!
    Staff of E4 Group JSC use Apple devices for call, reading email and calendars. When the user open event in calendar of iPhone or iPad, he does not see attachments (picture №1, picture №2). But it is possible on Blackberry (picture №3). How user of Apple can see these attachments? Recommend please any apps for it.

  • Need to read Email from Lotusnotes and Outlook using Oracle

    Dear All,
    My database version Oracle 10.2
    I need to read Email from Lotusnotes and Outlook using Oracle.
    I have tried with below link
    http://sourceforge.net/projects/plsqlmailclient/The problem is i am getting some java error.
    Can anyone suggest me to proceed further.
    Cheers,
    San

    I am using the another function to read an email from pop3 server
    create or replace
    FUNCTION pop3 (
       username   VARCHAR2,
       PASSWORD   VARCHAR2,
       msgnum     NUMBER
       RETURN tstrings PIPELINED
    IS
       --POP3_SERVER             constant varchar2(19) := '127.0.0.1';
       pop3_server   CONSTANT VARCHAR2 (100)     := 'xxxxxx';
       pop3_port     CONSTANT NUMBER             := 110;
       --POP3_TIMEOUT            constant number := 10;
       pop3_ok       CONSTANT VARCHAR2 (10)      := '+OK';
       e_pop3_error           EXCEPTION;
       --E_READ_TIMEOUT  exception;
       --pragma exception_init( E_READ_TIMEOUT, -29276 );
       socket                 UTL_TCP.connection;
       line                   VARCHAR2 (30000);
       BYTES                  INTEGER;
       -- send a POP3 command
       -- (we expect each command to respond with a +OK)
       FUNCTION writetopop (command VARCHAR2)
          RETURN VARCHAR2
       IS
          len    INTEGER;
          resp   VARCHAR2 (30000);
       BEGIN
          len := UTL_TCP.write_line (socket, command);
          UTL_TCP.FLUSH (socket);
          -- using a hack to check the popd response
          len := UTL_TCP.read_line (socket, resp);
          IF SUBSTR (resp, 1, 3) != pop3_ok
         THEN
           RAISE e_pop3_error;
          END IF;
          RETURN (resp);
       END;
    BEGIN
    --UTL_TCP.CLOSE_CONNECTION (SOCKET);
       PIPE ROW ('pop3:' || pop3_server || ' port:' || pop3_port);
       -- Just to make sure there are no previously opened connections
       UTL_TCP.close_all_connections;
       -- open a socket connection to the POP3 server
       socket :=
          UTL_TCP.open_connection (remote_host      => pop3_server,
                                   remote_port      => pop3_port,
                                   --tx_timeout => POP3_TIMEOUT,
                                   CHARSET          => 'US7ASCII'
       -- read the server banner/response from the pop3 daemon
       PIPE ROW (UTL_TCP.get_line (socket));
       -- authenticate with the POP3 server using the USER and PASS commands
       PIPE ROW ('USER ' || username);
       PIPE ROW (writetopop ('USER ' || username));
       PIPE ROW ('PASS ' || PASSWORD);
       PIPE ROW (writetopop ('PASS ' || PASSWORD));
       -- retrieve the specific message
       PIPE ROW ('RETR ' || msgnum);
       PIPE ROW (writetopop ('RETR ' || msgnum));
       --PIPE ROW( 'LIST '||msgNum ); PIPE ROW( WriteToPop('LIST '||msgNum) );
       PIPE ROW ('*** START OF INTERNET MESSAGE BODY ***');
       LOOP
       dbms_output.put_line('entering');
          BYTES := UTL_TCP.available (socket);
         IF BYTES > 0
          THEN
             BYTES := UTL_TCP.read_line (socket, line);
             line := REPLACE (line, CHR (13) || CHR (10), '');
             -- WILL HAVE TO USE PLSQL FUNCTIONS (HAVE BOOKMARKED) TO GET THE MAIL
             -- IN THE PREFERRED FORMAT. CAN USE "REPLACE()"
             IF LENGTH (line) = 1 AND line = '.'
             THEN
                PIPE ROW ('*** END OF INTERNET MESSAGE BODY ***');
             ELSE
                PIPE ROW (line);
             end if;
         END IF;
          EXIT when length (LINE) = 1 and LINE = '.';
          -- PIPE ROW (line);
       END LOOP;
       --PIPE ROW( '*** END OF INTERNET MESSAGE BODY ***' );
       -- close connection
       PIPE ROW ('QUIT');
       PIPE ROW (writetopop ('QUIT'));
       UTL_TCP.CLOSE_CONNECTION (SOCKET);
    EXCEPTION
       WHEN e_pop3_error
       THEN
          PIPE ROW ('There are no mails !');
    END;I am getting the below output .
    21     pop3:sbssld1 port:110
    75     "+OK Lotus Notes POP3 server version Release 8.0.1 ready on SBSSLD1/SBPSS.
    47     USER [email protected]
    69     "+OK [email protected], your papers please.
    13     PASS password
    63     "+OK [email protected] has 1 message.
    6     RETR 1
    17     "+OK 1546 octets
    38     *** START OF INTERNET MESSAGE BODY ***
    9     Subject:
    48     X-KeepSent: A231D6D0:8485FE4B-65257AB1:0022E60F;
    23      type=4; name=$KeepSent
    46     To: [email protected]
    53     X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008
    95     Message-ID: <[email protected]mbnpparibasfs.in>
    48     From: [email protected]
    36     Date: Fri, 9 Nov 2012 11:51:14 +0530
    90     X-MIMETrack: Serialize by POP3 Server on SBSSLD1/SBPSS(Release 8.0.1|February 07, 2008) at
    23      11/09/2012 11:51:21 AM
    17     MIME-Version: 1.0
    37     Content-type: multipart/alternative;
    68     "     Boundary="0__=EABBF022DFB16ED68f9e8a93df938690918cEABBF022DFB16ED6""
    27     Content-Disposition: inline
    (null)     (null)
    58     --0__=EABBF022DFB16ED68f9e8a93df938690918cEABBF022DFB16ED6
    39     Content-type: text/plain; charset=UTF-8
    33     Content-transfer-encoding: base64
    (null)     (null)
    (null)     (null)
    76     DQoNCg0KUmVnYXJkcywNClNoYW5tdWdhbSBOYXRhcmFqYW4uDQpNb2IgOiA5NjI5MjUyNDI1DQpP
    76     ZmYgOiAwNDQgMjI1MDQ3MDAgRXh0biA0Nzc5DQoNCiB+SWYgdGhlIGZhY3RzIGRvbuKAmXQgZml0
    68     IHRoZSB0aGVvcnksIGNoYW5nZSB0aGUgZmFjdHMu4oCdIC0gQWxiZXJ0IEVpbnN0ZWlu
    (null)     (null)
    58     --0__=EABBF022DFB16ED68f9e8a93df938690918cEABBF022DFB16ED6
    38     Content-type: text/html; charset=UTF-8
    27     Content-Disposition: inline
    33     Content-transfer-encoding: base64
    (null)     (null)
    76     PGh0bWw+PGJvZHk+DQo8cD5SZWdhcmRzLDxicj4NClNoYW5tdWdhbSBOYXRhcmFqYW4uPGJyPg0K
    76     TW9iIDogOTYyOTI1MjQyNTxicj4NCk9mZiA6IDA0NCAyMjUwNDcwMCBFeHRuIDQ3Nzk8YnI+DQo8
    76     YnI+DQogfklmIHRoZSBmYWN0cyBkb27igJl0IGZpdCB0aGUgdGhlb3J5LCBjaGFuZ2UgdGhlIGZh
    60     Y3RzLuKAnSAtIEFsYmVydCBFaW5zdGVpbjxicj4NCjwvYm9keT48L2h0bWw+
    (null)     (null)
    60     --0__=EABBF022DFB16ED68f9e8a93df938690918cEABBF022DFB16ED6--
    (null)     (null)
    36     *** END OF INTERNET MESSAGE BODY ***
    4     QUIT
    42     "+OK Lotus Notes POP3 server signing off.
    "Now pls suggest me how can i store the sender mail id, receiver mail id, subject and body of the mail in a table.
    So that i can display the saved data in the above table as a mail in my separate application.
    Thanks in advance.
    Cheers,
    San

  • What apple store app would be used to read emails on mac that were downloaded to a thumb drive from windows (outlook).

    What apple store App would be used to read email on the mac that was downloaded to a thumb drive from windows outlook.
    Recently purchased a Mac and data transfer for e-mails only showed the email preview but does not open up the body of the email or attachments.  So I down loaded my inbox, and folders to a thumb drive.  this will open correctly on the window pc but the mac is looking for the approriate app to read this data.
    Could the Apple store remove down loaded emails and then reload from the thumb drive?

    EL-Benjo,
    Please be sure to read the Important Note at the bottom of the page of the link I provided.
    Important Note
    When you install OS X Lion using the USB thumb drive, you will not be able to reinstall OS X Lion from Lion Recovery. You will need to use the USB thumb drive to reinstall OS X Lion.

  • Attaching a BI Publisher report to an email from Apex

    Hello,
    My Apex application runs reports using a BI Publisher server- using a defined query and rtf template.
    The end user clicks on a button and a pdf report opens up- works perfect.
    Now, I need the click of the button to send an email having this report as an attachment.
    I am familiar with sending email from Apex + attachment.
    My problem is to create the report somewhere on the server without opening in a new browser window, then to attach the report that has just been create using BI Publisher to the email.
    Does anyone know how this can be accomplished?
    Thanks
    Rani

    Hi Tony,
    Just found out about a completely different solution:
    Thanks for your help.
    Rani
    Solution:
    declare
    datoteka blob;
    st_poste number;
    begin
    datoteka:=apex_util.get_print_document(
    p_application_id=>'183',
    p_report_query_name=>'REVIEW_COORD',
    p_report_layout_name=>'REVIEW_COORD',
    p_report_layout_type=>'rtf',
    p_document_format=>'pdf');
    st_poste:=apex_mail.send(
    p_to=>'[email protected]',
    p_from=>'[email protected]',
    p_body=>'Test',
    p_subj=>'Subject');
    apex_mail.add_attachment(
    p_mail_id=>st_poste,
    p_attachment=>datoteka,
    p_filename=>'REVIEW_COORD.pdf',
    p_mime_type=>'application/pdf');
    apex_mail.push_queue;
    end ;

Maybe you are looking for

  • I would like to go back to Snow Leopard - problem is...

    I gave Lion a several week chance and I am experiencing significant problems with the way the new mail works,  I've tried the "classic" route, gave the natural function a chance, but just spend too much time figuring out how Lion wants me to read and

  • Keeping the values in Request bean across more than 2 pages

    Hi..., I have created a Bean with request scope & want to access it across 3 different pages. From the 1st page once I submit the values , I do a forward (redirect=no) to the second page where I can print the values . From the 2nd page I then do a fo

  • Reading colour image using raster object and getsample() method

    Hello all, I am trying to read a grey image using this code below and it perfectly works: File filename = new File("myimage.jpg"); BufferedImage inputimage = ImageIO.read(filename); Raster input = inputimage.getRaster(); double pixelvalue = input.get

  • Forms & Scripts!

    I have just incorporated a basic "Contact Us" form into a website, I contacted my webhost to include a cgi/bin which has been inc. but unfortunately they DO NOT supply a script to make the form work. I downloaded a form from "MATS" which is FormMail.

  • [Solved] I've broken pacman

    I had a failure a couple of days ago during a pacman -Syu run. Since then, any attempt to run pacman -Syu results in messages that all package databases are up to date and there is nothing to do. I know that isn't correct - there are several updates