Fetching Email (POP/ IMAP ) using PL/SQL

Hi,
I am using Oracle 10g database.
I want to fetch emails from a specific email address and save them in a database on a real time basis so that i can fetch them predetermined business logic.
Is is it possible to connect to emails and fetch them using PL/SQL ??
If yest what is the command used to connect / fetch emails ?
Many Thanks
Edited by: user12037243 on Mar 29, 2013 9:05 PM

Hi, Shikhar
Welcome to OTN
Welcome to the Oracle Forums. Please take a few minutes to review the following:
<ul>
<li>Oracle Forums FAQ
<li>Before posting on this forum please read
<li>10 Commandments for the OTN Forums Member
<li>How to ask questions the smart way
</ul>
Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
user12037243 wrote:
Hi,
I am using Oracle 10g database.
I want to fetch emails from a specific email address and save them in a database on a real time basis so that i can fetch them predetermined business logic.
Is is it possible to connect to emails and fetch them using PL/SQL ??
If yest what is the command used to connect / fetch emails ?
How you requirement is related to Forms. Post at {forum:id=75} and close this thread.
Hope this helps
Hamid
Mark correct/helpful to help others to get right answer(s).*

Similar Messages

  • Capture mail with Attachment from POP server using PL/SQL

    Hey guys,
    With the help of this forum and Billy I am able to capture the email from POP3 server and display it to the user. But my query is how can I get an Attachment from the email using PL/SQL's UTL-TCP method ? Right now it displays some encrypted code.
    Thanks.

    Hey guys,
    With the help of this forum and Billy I am able to capture the email from POP3 server and display it to the user. But my query is how can I get an Attachment from the email using PL/SQL's UTL-TCP method ? Right now it displays some encrypted code.
    Thanks.

  • Pop up using PL SQL Toolkit

    Hello there :
    Is there any way we can create a pop-up window using PL/SQL Toolkit.
    Thanks for the help.
    Regards,
    Mohit

    using ApEx forum may be more efficient for PL/SQL Toolkit -> Oracle Application Express (APEX)

  • Why can't I set up POP/IMAP emails for my Muse website in Business Catalyst? I don't have the option 'use this service for email as well as hosting the website' under Advanced options

    Why can't I set up POP/IMAP emails for my Muse website in Business Catalyst? I don't have the option 'use this service for email as well as hosting the website' under Advanced options.
    Is this due to my Hosting Plan? Appreciate any answers.

    Your site is a CCM site which is on a WebBasics plan (This plan does not provide hosted emails on Business Catalyst).
    If you want to create email addresses on this site, you would need to setup your email server elsewhere and configure the MX records on your site to point to that external mail server.
    If you want to use Business Catalyst's hosted email services you would need to use a WebBasics+ or higher siteplan. To upgrade your CCM free site, Access your site's admin area  -> Site Management -> Upgrade Now -> choose the desired site plan and billing frequency -> Add personal and credit card details -> Submit.
    Please refer this article about setting up email accounts on your BC site: http://docs.businesscatalyst.com/user-manual#!/site-settings/email-users
    For setting up records to point to external mail server, check out http://docs.businesscatalyst.com/user-manual#!/site-settings/email-users/creating-inboxes- for-your-users
    Regards,
    Surjeet

  • API to Fetch email using SMTP from EXCHANGE server.

    Hi There,
    We have a customer requirement to fetch e-mails from his EXCHANGE server using SMTP. Our application currently supports fetching e-mail using POP, IMAP.
    POP and IMAP is disabled in customer environment and there is no way enable them to fetch e-mails.
    Please help me to solve this problem by pointing to some APIs available or code.
    I searched but not able to find a solution for this.
    Thanks in advance.
    Regards,
    Krish.

    SMTP is generally, almost strictly used for sending mail not fetching.
    I understand that they may not be able to use IMAP or POP, as some rented Exchange services block IMAP,POP services so they can ensure the client is sticking to the Exchange product line etc.
    Perhaps you could find a Exchange library for Java? im sure there is one about. There are OpenSource solutions for exchange out there as Linux applications like evolution can communicate with Exchange. I beilve the protocol used in Exchange is MAPI? (or SAPI?)
    Another solution would be to just use the clients mail client to export the emails to a more portable format (MBOX? or a folder of EMS files) then import them into Java using InputStreams on the files?
    Or, Get an opensource Exchange compatible server software, eGroupware springs to mind, set that up as a proxy or a go-between. set it up to retrieve mail from the Exchange server and enable its POP and IMAP functions and retrieve the mail from it.
    Either way Im near 100% certain SMTP is not for fetching mail.

  • Email Sender's display name not displaying/resolving on internal emails with POP/IMAP clients

    Here's the scenario. I have two 2013 test accounts setup in Outlook as POP/SMTP accounts. I have their name setup as initials in the outlook account (the "Your Name" field).  If I send an email (Through SMTP) to a 2013 Exchange(Outlook
    Anywhere) client, their names resolve to their actual Display Name in the GAL which is correct.  Now if I send an email to another 2013 POP/IMAP user, their name shows what is setup in Outlook which is their initials which is not correct.
    Now we are currently in the process of a 2007 to 2013 migration.  I do not see this behavior on the Exchange 2007 side with POP/IMAP clients.  If I run the same test setup with a 2007 mailbox as the recipient, the sender's name resolves to
    their GAL display name and NOT the name configured in the Outlook Account settings.  It doesn't matter whether the sender is a 2007 or 2013 account.  As long as the recipient is on 2007 it works fine.
    This is all tested using authenticated SMTP.  The only difference I can tell is that the 2007 servers resolve the name before delivering it to the inbox where the 2013 servers don't.
    There aren't any GAL or Address Book related issues on the 2013 side.  Full exchange clients or OWA work correctly.

    Hi,
    It seems to be related to the permission settings on the receive connector. For example, using a Receive Connector for Anonymous Relay. We can refer to this article:
    http://technet.microsoft.com/en-us/library/aa996395(v=exchg.141).aspx
    And we can use the tool Dsacls to check the permissions:
    http://technet.microsoft.com/en-us/library/cc771151(v=ws.10).aspx
    Receive Connector Permissions
    http://technet.microsoft.com/en-us/library/jj673053(v=exchg.150).aspx

  • Configure Sendmail using POP/IMAP

    Hello !
    I need some consise and comprehensive help/tutorial or material/reference of any sort, as to how to configure Mail service using Sendmail and POP/IMAP service.
    I would be highly obliged!

    I take it that you want to get personal email while at work which may or may not be okay with your company policy - but that's for you to decide.
    A way around it.
    I use Oceanic Time Warner RoadRunner as an ISP and it has an option that allows me to access and send email when I am on the road called Web Mail that is accessed from my browser home page (RoadRunner). Mail won't allow you to access your normal mail except for viewing not sending messages when you're not in your local area, so Web Mail takes the place of using Mail. I access it through http.
    Your email provider should have something similar with a web address as long as you can access it through your computer at work.

  • Using POP/IMAP Mail inside company firewall

    The IT at my work place blocks all ports except 80 and 443.
    Can I use POP/IMAP accounts over HTTP or HTTPS?

    I take it that you want to get personal email while at work which may or may not be okay with your company policy - but that's for you to decide.
    A way around it.
    I use Oceanic Time Warner RoadRunner as an ISP and it has an option that allows me to access and send email when I am on the road called Web Mail that is accessed from my browser home page (RoadRunner). Mail won't allow you to access your normal mail except for viewing not sending messages when you're not in your local area, so Web Mail takes the place of using Mail. I access it through http.
    Your email provider should have something similar with a web address as long as you can access it through your computer at work.

  • Sending email using PL/SQL based on a query result

    Hello all,
    I want to create a procedure using PL/SQL, based on a query result.Here is the scenario:
    I have multiple tables in Target and Source databases that I want to compare(not the whole table but queries on these tables) and if they differ, I want to shoot an email. I have some ideas how to implement this but not sure whether it is the best approach.
    select Acct_id, total from SourceTableA
    minus
    select Acct_id, total from TargetTableA
    select Acct_id, sum from SourceTableB
    minus
    select Acct_id, sum from TargetTableB
    If the result of any of above queries > 0 then I want to shoot an email and want to repeat this procedure in the morning every day.
    I know how to implement send_mail procedure using UTL_SMTP package and how to schedule tha job by dbms_job package. But I am not sure how to implement the result of minus query. In case if minus > 0 then I also want to send the name of tables in the email message where source and target tables are not same. Should i use cursor, variable or insert the result in a new table? any help would be highly appreciated. Thanks in advance.
    Khan

    Actually these queries are the part of our daily testing that we run everyday manually(after the scheduled ETL load) to see if there are any discrepencies between our datawarehouse tables and source tables. So instead of running these queries manually everyday we want to schedula a procedure that will shoot an email in case of any discrepency and indicate which tables have problems.

  • How to send email using pl/sql containing the result set as the msg body

    Hi.. im using Pl/SQL code to send emails to the users from a dataset that is obtained in a databse table. i have used utl_smtp commands to establish the connection with the smtp mail server. im stuck at the logic when i have to include the message body which is actually the result set of a table.. For instance
    IF (p_message = 0) THEN
    UTL_SMTP.write_data(l_mail_conn, 'There is no mismatch between the codes' || UTL_TCP.crlf);
    ELSE
    UTL_SMTP.write_data(l_mail_conn, 'The missing codes are ' || UTL_TCP.crlf);
    for s in (select * from temp)
    loop
    UTL_SMTP.write_data(l_mail_conn, ' ' ||s || UTL_TCP.crlf);
    end loop;
    END IF;
    UTL_SMTP.close_data(l_mail_conn);
    UTL_SMTP.quit(l_mail_conn);
    END;
    ***p_message is a prameter passed to this procedure..
    Can i obtain the result in the form i have it in my table. which has three columns. I want to display the three columns as it is with teh records. ?

    this is not related about this forum but you can use below,
    CREATE OR REPLACE PROCEDURE SEND_MAIL (subject varchar2,mail_from varchar2, mail_to varchar2,mail_msg varchar2)
    IS
    mail_host varchar2(30):='XXXXX';
    mail_conn utl_smtp.connection;
    tz_offset number:=0;
    str varchar2(32000);
    BEGIN
    begin
    select to_number(replace(dbtimezone,':00'))/24 into tz_offset from dual;
    exception
    when others then
    null;
    end;
    mail_conn:=utl_smtp.open_connection(mail_host, 25);
    utl_smtp.helo(mail_conn,mail_host);
    utl_smtp.mail(mail_conn,'[email protected]');
    utl_smtp.rcpt(mail_conn,mail_to);
    utl_smtp.open_data(mail_conn);
    utl_smtp.write_data(mail_conn,'Date: '||to_char(sysdate-tz_offset,'dd mon yy hh24:mi:ss')||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn,'From: '|| mail_from ||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn,'To: "'|| mail_to ||'" <'||mail_to||'>'||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn,'Subject: '||subject||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn,utl_tcp.crlf);
    utl_smtp.write_data(mail_conn,replace_turkish_chars(mail_msg)||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn,utl_tcp.crlf);
    utl_smtp.close_data(mail_conn);
    utl_smtp.quit(mail_conn);
    END;
    Edited by: odilibrary.com on Jun 12, 2012 5:26 PM

  • How to send an email with attachment to dynamic emial address using PL/SQL

    Hi,
    i want to send an automated email with attachment everyday to differnet people so number people is not static.
    so is it any way using PL/SQL ?
    thanks for your support!

    i want to send an automated email with attachment everyday to differnet people so number people is not static.
    Why? Explain it.
    You can create a table and store your email id through front-end application day to day.
    The table should look like this ->
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.04
    satyaki>
    satyaki>
    satyaki>create table email_master
      2    (
      3       email_grp_header         varchar2(30) not null,
      4       craete_time                  timestamp,
      5       constraints pk_header primary key(email_grp_header)
      6    );
    Table created.
    Elapsed: 00:00:02.12
    satyaki>
    satyaki>create table email_chld
      2    (
      3       email_grp_header          varchar2(30) not null,
      4       email_recepient             varchar2(100),
      5       craete_time                   timestamp,
      6       constraint fk_header foreign key(email_grp_header) references email_master(email_grp_header)
      7    );
    Table created.
    Elapsed: 00:00:00.09
    satyaki>
    satyaki>
    satyaki>insert into email_master values('GRP_INVENTORY',systimestamp);
    1 row created.
    Elapsed: 00:00:00.07
    satyaki>
    satyaki>
    satyaki>insert into email_master values('GRP_PURCHASE',systimestamp);
    1 row created.
    Elapsed: 00:00:00.03
    satyaki>
    satyaki>commit;
    Commit complete.
    Elapsed: 00:00:00.04
    satyaki>
    satyaki>select * from email_master;
    EMAIL_GRP_HEADER               CRAETE_TIME
    GRP_INVENTORY                  24-OCT-08 08.55.36.190000 PM
    GRP_PURCHASE                   24-OCT-08 08.55.54.481000 PM
    Elapsed: 00:00:00.18
    satyaki>
    satyaki>
    satyaki>insert into email_chld values('GRP_INVENTORY','[email protected]',systimestamp);
    1 row created.
    Elapsed: 00:00:00.07
    satyaki>
    satyaki>insert into email_chld values('GRP_INVENTORY','[email protected]',systimestamp);
    1 row created.
    Elapsed: 00:00:00.04
    satyaki>
    satyaki>insert into email_chld values('GRP_INVENTORY','[email protected]',systimestamp);
    1 row created.
    Elapsed: 00:00:00.03
    satyaki>
    satyaki>insert into email_chld values('GRP_PURCHASE','[email protected]',systimestamp);
    1 row created.
    Elapsed: 00:00:00.03
    satyaki>
    satyaki>insert into email_chld values('GRP_PURCHASE','[email protected]',systimestamp);
    1 row created.
    Elapsed: 00:00:00.11
    satyaki>commit;
    Commit complete.
    Elapsed: 00:00:00.05
    satyaki>
    satyaki>select * from email_chld;
    EMAIL_GRP_HEADER               EMAIL_RECEPIENT                                                                                      CRAETE_TIME
    GRP_INVENTORY                  [email protected]                                                                                      24-OCT-08 08.56.46.107000 PM
    GRP_INVENTORY                  [email protected]                                                                                         24-OCT-08 08.57.03.551000 PM
    GRP_INVENTORY                  [email protected]                                                                                    24-OCT-08 08.57.36.277000 PM
    GRP_PURCHASE                   [email protected]                                                                                      24-OCT-08 08.58.06.129000 PM
    GRP_PURCHASE                   [email protected]                                                                                    24-OCT-08 08.58.26.900000 PM
    Elapsed: 00:00:00.10
    satyaki>And, then based on the group header you can get the list of recipient and use it dynamically inside your PL/SQL Application.
    Regards.
    Satyaki De.

  • TS1398 I use Outlook express email.  I set up my iphone and ipad email in imap protocol.  Can I leave my desktop email set up as pop3?

    I use Outlook Express for email.  I set up my ipad and iphone email in imap protocol.  Can I leave my desktop as pop3?  Thanks.

    sure

  • Reply address: is it possible to use another reply address other than the pop address used in my account. I have a special work account and would like to send emails with that address as my reply address...or sent from address

    Reply address: is it possible to use another reply address other than the pop address used in my account. I have a special work account and would like to send emails with that address as my reply address...or sent from address

    i found out how to do this finally!
    1) set up google gmail account to forward your emails to (from the [email protected])
    2) go to your gmail account
    3) go to settings (cog in right hand corner)
    4) go to 'accounts and import'
    5) go to 'send mail as'
    6) click 'Add another email address you own' - add your [email protected] address
    7) google will send a verification email with code to that email address.
    8) enter code
    9) go back to gmail account  >'send mail as' and select 'make default'
    10) close mac 'mail' program and reopen it.
    as long as you have gmail account selected as the primary account in MAIL - mail will now come throught as being sent from that  [email protected] address!!

  • Send Email using Execute SQL Task??????

    I need to send the bad records in the data flow.  I am attempting to do this using Execute SQL Tasks.  Please give me steps I need to accomplish this.  I have not set any variables up yet, assuming I need too.

    Just add a Send mail Task (or Script Task if using gmail etc which requires authentication) and pass the file as an attachment. Make sure you've a step (Script Task) to check if file length > 0 (ie file has records) before you link it to Send mail Task
    ie use a conditional precedence constraint (Expression And Constraint option)
    See these links for more details
    http://dwteam.in/send-mail-in-ssis-using-gmail/
    http://www.mssqltips.com/sqlservertip/1753/sending-html-formatted-email-in-sql-server-using-the-ssis-script-task/
    https://www.simple-talk.com/sql/ssis/working-with-precedence-constraints-in-sql-server-integration-services/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • I am having an issue using OS X Mail for email via IMAP

    Hi there.  I am trying to use OS X Mail to set up email via IMAP for Business Catalyst email, but I am getting an error when trying to connect to the IMAP server on port 143.  The Mail application connection doctor points to the incoming mail server as the problem.  SMTP seems to connect just fine.  I have also tried to connect via multiple ISPs and am getting the same issue.  All of my setup information looks to be just fine.  Any suggestions?  I am using OS X 10.9.3.

    I am having the same issue with Mac Mail — Version 7.3 (1878.6) running OS 10.9.4. All of the settings look correct with the correct ports, servers, and no SSL.  I've not been able to find a solution elsewhere online.
    RCsCloud Have you resolved your issue?

Maybe you are looking for

  • Error in client import

    hi Experts,    here i need some help for my present issue about client import; i finished client export with warnings after i copied cofiles/data files from source to target system in my target system we have 3 clients 333,222,444 i need to copy into

  • How to deal with  this type of flash warning

    I develop a ocx for playing flash on web .Then I also place a swf that has encrypted on web,before it can be played it must retrive the need information form ocx for decoding.But when I play the swf on web,it will warning that Adobe Flash Player has

  • Creating a form in Application gives WWV-13003.

    Hi, After renaming a form say FormA to FormB in Application , I am not able to create a new form with the same name that is FormA . I have deleted the form from wwv_modules$ saying " delete from wwv_modules$ where name like 'formname'; " . After this

  • Hyperlink in adobe form

    Hi, I want to create hyperlink on the form. I am using ALD 8.1.6. So I dont see the insert hyperlink option on the menu bar. I think we have to do it through Javascript. If anyone know, please let me know the procedure. Thanks GJ

  • Design issue: which is better?

    In the situation like below public class Foo{     public Foo(){          Foo1 f1 = new Foo1();          //other code to start the thread //Foo1 class public class Foo1(){      public synchronized void setData(String s){            //codes that adds t