Integrating Outlook with Form 6

I want to integrate MS Outlook with my application running on Forms 6. From the database in Oracle, user should be able to send email directly by clicking on the email id field of the database. i.e. on clicking on the email id field, Outlook should open with new message window automatically.
I am using Oracle 8.1.5 & Developer 6.0

Try this if you using Microsoft Outlook :
GENERAL USAGE:
The Mail package contains three procedures:
1. Procedure Mail_pkg.logon( profile IN varchar2 default NULL);
Use this procedure to logon to the MS Exchange mail client.
The procedure takes a character argument which specifies the
Exchange Profile to use for logon. Passing a NULL argument to
the logon procedure brings up a dialog box which asks you to
choose a profile from a list of valid profiles or create a new
one if it doesn't exist.
2. Procedure Mail_pkg.send(
--------- Recipient IN varchar2,
Subject IN varchar2 default NULL,
Text IN varchar2 default NULL,
Attachment IN varchar2 default NULL
This is the procedure that actually sends the message and
attachments, if any, to the recipient. The recipient may be
specified directly as a valid email address or as an alias
defined in the address book. If the message is intended for a
fax recipient then a valid alias must be used that is defined as
a fax address in the address book.
3. Procedure Mail_pkg.logoff;
This procedure closes the Exchange session and deallocates
the resources used by the OLE automation objects.
SAMPLE FORMS APPLICATION:
1. Create the Mail Package using the following two Program
Units:
(a) Mail Package Spec
(b) Mail Package Body
Mail Package Spec:
PACKAGE Mail_pkg IS
session OLE2.OBJ_TYPE; /* OLE object handle */
args OLE2.LIST_TYPE; /* handle to OLE argument list */
procedure logon( Profile IN varchar2 default NULL );
procedure logoff;
procedure send( Recp IN varchar2,
Subject IN varchar2,
Text IN varchar2,
Attch IN varchar2
END;
Mail Package Body:
PACKAGE BODY Mail_pkg IS
session_outbox OLE2.OBJ_TYPE;
session_outbox_messages OLE2.OBJ_TYPE;
message1 OLE2.OBJ_TYPE;
msg_recp OLE2.OBJ_TYPE;
recipient OLE2.OBJ_TYPE;
msg_attch OLE2.OBJ_TYPE;
attachment OLE2.OBJ_TYPE;
procedure logon( Profile IN varchar2 default NULL )is
Begin
session := ole2.create_obj('mapi.session');
/* create the session object */
args := ole2.create_arglist;
ole2.add_arg(args,Profile);/* Specify a valid profile name */
ole2.invoke(session,'Logon',args);
/* to avoid the logon dialog box */
ole2.destroy_arglist(args);
End;
procedure logoff is
Begin
ole2.invoke(session,'Logoff');
/* Logoff the session and deallocate the */
/* resources for all the OLE objects */
ole2.release_obj(session);
ole2.release_obj(session_outbox);
ole2.release_obj(session_outbox_messages);
ole2.release_obj(message1);
ole2.release_obj(msg_recp);
ole2.release_obj(recipient);
ole2.release_obj(msg_attch);
ole2.release_obj(attachment);
End;
procedure send( Recp IN varchar2,
Subject IN varchar2,
Text IN varchar2,
Attch IN varchar2
)is
Begin
/* Add a new object message1 to the outbox */
session_outbox := ole2.get_obj_property(session,'outbox');
session_outbox_messages :=
ole2.get_obj_property(session_outbox,'messages');
message1 := ole2.invoke_obj(session_outbox_messages,'Add');
ole2.set_property(message1,'subject',Subject);
ole2.set_property(message1,'text',Text);
/* Add a recipient object to the message1.Recipients collection
msg_recp := ole2.get_obj_property(message1,'Recipients');
recipient := ole2.invoke_obj(msg_recp,'add') ;
ole2.set_property(recipient,'name',Recp);
ole2.set_property(recipient,'type',1);
ole2.invoke(recipient,'resolve');
/* Add an attachment object to the message1.Attachments
collection */
msg_attch := ole2.get_obj_property(message1,'Attachments');
attachment := ole2.invoke_obj(msg_attch,'add') ;
ole2.set_property(attachment,'name',Attch);
ole2.set_property(attachment,'position',0);
ole2.set_property(attachment,'type',1); /* 1 => MAPI
File Data */
ole2.set_property(attachment,'source',Attch);
/* Read the attachment from the file */
args := ole2.create_arglist;
ole2.add_arg(args,Attch);
ole2.invoke(attachment,'ReadFromFile',args);
ole2.destroy_arglist(args);
args := ole2.create_arglist;
ole2.add_arg(args,1); /* 1 => save copy */
ole2.add_arg(args,0); /* 0 => no dialog */
/* Send the message without any dialog box, saving a copy in the
Outbox */
ole2.invoke(message1,'Send',args);
ole2.destroy_arglist(args);
message('Message successfully sent');
End;
END;
The layout contains 5 text-itmes:
- Profile
- To
- Subject
- Message (multiline functional property set to true)
- Attach
and a 'Send' button with the following WHEN-BUTTON-PRESSED
trigger:
mail_pkg.logon(:profile);
mail_pkg.send(:to,:subject,:message,:attch);
mail_pkg.logoff;

Similar Messages

  • Integrating the ms outlook with Sap.

    Hi All,
    Our client wants his out look users to be reflected at sap level.Hence we are planning to integrate ms outlook to sap.Please let me know how it is done.Any documents to do this integration.(screen shots are always welcome).Detalied procedure.
    Platforms:win2003,mssql server2005 and ecc5.
    Thanks in Advance,
    Megha.
    meghanathbasis at gmail com
    Edited by: megha reddy on Jan 8, 2009 3:26 PM

    Hi Balaji,
    No, a sap user who wants to send mails to outlook users and the user sending the mail to outlook must get all the users of outlook in sap,in auto look up mode.(When using outlook for sending the mails,when you want to send a mail suppose to user"balaji" if you click type "b"on address bar you can see all th users name starting with b...like balaji,balram,basker etc......)
    We need a way to have an e-mail address look-up/auto-complete (preferably from the Exchange Global Address list) feature anywhere that you would put an email address into the SAPGUI interface
    Something like the email address auto-complete feature in Outlook (never mind that this is a client-side feature).Another possibility is the address lookup feature (pressing crtl-k in Outlook).
    Please see the attached document for the actual scenario.
    I tried using the distribution list (so23),but we have thousands of users in outlook.It is not apprciable to make those many entries in the list, and more over the user will not be sending the same po to same individuals at every given time.
    Please share with me any docs which can give clear picture about this prosedure to be followed to either get this done or integrating outlook with sap(the last option i supppose)
    Edited by: megha reddy on Jan 8, 2009 7:03 PM

  • Changed Outlook Contact Form back to IPM.Contact - now I can't save contact in Public Folder

    I recently changed the Contact form that we were using back to the default IPM.Contact. I did this so that it  would be consistent for only a few of us had a custom contact template to use and it made it difficult to share contact information. After
    changing the contact default back to IPM.Contact and changing all the contacts to reflect the default Message class, no can add a contact to the Public Folder contact file. I have tried several different setting for the permsion. Publishing Author, Publish
    Editor, Owner, it still gives the error
    The item cannot be saved to this folder. The folder was deleted, or you do not have permission. Do you want to save a copy of it in the degfualt folder for the item.
    When I changed the form back to IPM.Contact  i ran the omglass.exe to change it on all the contacts in the public folder. 
    Please advise for no contacts can now be added to our company contact list

    Hi,
    Please right-click this public folder, click Properties. In the General tab, make sure the field of "When posting to this folder, use" is set to IPM.Contact.
    Please restart Outlook with Outlook /checkclient switch(Start > Run > type Outlook /checkclient and enter) to have a try. If it fails, please create a new Outlook profile to have a try:
    http://support.microsoft.com/kb/829918/en-us
    Regards,
    Winnie Liang
    TechNet Community Support

  • Integrating Apex with Cocoon (does it make pdf from taking data from DB)

    Friends,
    I integrated Apex with appache with cocoon. Its working fine with reports but i want it to work with form on a table or view.The steps below which i have followed for integrating Apex with Cocoon
    Steps of pdf Printing of Report with cocoon:
    1) Download and unzip the following needed files in D:\Apex_fop directory.
    2) Open your command prompt .
    Change the directory to D:\Apex_fop\cocoon-2.1.11.
    Set the Java_Home environment variable as: set JAVA_HOME= C:\Program Files\Java\jdk1.5.0_21
    then type build war
    3) After getting the prompt back as D:>Apex_fop>cocoon-2.1.11>
    Copy coocon.war file from the folder D:\Apex_fop\cocoon-2.1.11\build\cocoon.
    Paste this file into webapps subdirectory in main tomcat directory having path as D:\APEX_FOP\apache-tomcat-6.0.26\webapps.....place it in the top
    level of webapps directory.
    4) Now just startup tomcat as D:>APEX_FOP>apache-tomcat-6.0.26>bin>startup.bat
    The cocoon.war file will automatically uncompressed as directory.
    5) To change the port of apache tomcat , edit apache-tomcat-6.0.26\conf\server.xml & change port attribute of Connector element from 8080 to 8181.
    Just check whether Tomcat is running or not as http://localhost:8181/
    & to check cocoon type http://localhost:8181/cocoon/
    6) Now copy fop_post directory & paste it undes new cocoon directory in webapps having path as D:\APEX_FOP\apache-tomcat-6.0.26\webapps
    \cocoon.
    7) Now you need to do some apex settings as follows:
    In APEX, just log in as ADMIN into apex/apex_admin and went to Instance Settings and did the following:
    - Print Serverr: Standard Support
    - Print Server Protocol: HTTP
    - Print Server Host Address:localhost
    - Print Server Port: 8181
    - Print Server Script: /cocoon/fop_post
    In your APEX application, in the Regions section, Click on the Print link next to your report and do the following settings:
    - Enable Report Printing: Yes
    - Link Label: Print
    - Response Header: Report Settings
    - View File As: Attachment
    - Output Format: PDF
    - Report Layout: Default Report Layout
    - Print URL: f?p=&APP_ID.:1:&SESSION.:FLOW_XMLP_OUTPUT_R1063230002781575
    8) Open up the Report Page and click Print , You will get the pdf report.
    But my requirement is bit different. I have made form on a table or view , so when i am submitting my form the record is getting updated in my database and at the same time a new button is appearing at same page as i have branched it in same page. The new button name is print. I want when i click this print button it should print the record which submitted recently. How can i enable the print functionality on form. Its simple in report but how can it be done on form?
    Looking forward for this to know wthr it is achievable or not and if yes what all are the ways?
    Thanks in advance for all who is going to post here and to them also who is giving their time in reading my thread
    Regards
    Adi
    Edited by: Adi's on Mar 23, 2010 8:54 PM
    Edited by: Adi's on Mar 23, 2010 8:54 PM

    You could redirect to a report page instead of to the form page. Then simply print the report.
    This makes sense. You would have one page for entering the data and another page for displaying and printing it.

  • Problem in integrating xMII with VC

    hi Experts,
    My xMII server Version is <b>11.5</b>
    I followed this document:
    <b>https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033</b> for integrating xMII with VC.
    Connection URL: http://<myXMIIServerName>/Lighthammer/ALL_TEMPLATES?version=<b>11.5</b>&trace=true
    Driver Class Name: <b>com.sap.xmii.custom.integration.jdbc.SAPxMIIJDBCDriver</b>
    System Alias: <b>XMII_JDBC</b>
    Connection test is <b>successful</b>, after configured System.
    I am getting error while <b>FindData Seach</b> in VC,
    Inputs given are,
    System: XMII_JDBC (this is my system)
    Look for: Look for a table
    the error is, <b>Error-2305 Cannot retrive catalogs and schemas; check the connection to the selected systems Cannot access JDBC metadata </b>
    I think i made mistake in connectionURL, but connection test is successful.
    Please guide me, where i made mistake.
    Points will be Awarded.
    Thanks & Regards,
    Chinnadurai R

    Hi Sam,
    Thanks for your reply... I am also think that i made mistake in comnnection URL ,
    I have created some querys under Samples/Reports,
    I gave like this::
    <b>http://<myXMIIServerName>/Lighthammer/Templates/Samples/Reports?version=11.5&trace=true</b> and  <b>http://<myXMIIServerName>/Lighthammer/Templates/Samples/Reports?</b>
    and then like this
    <b>http://<myXMIIServerName>/Lighthammer/Illuminator/Templates/Samples/Reports?version=11.5&trace=true</b>
    I tried using all the URL  shown above, but it is not listing the Querys in VC .
    Can u guide me how can i form that Connection URL ..
    Thanks & Regards,
    Chinnadurai R

  • How to integrate  microsoft outlook with WebAS

    how to integrate  microsoft outlook with WebAS

    Nibu,
    I guess users enumerated enough options in your original thread on different forum: Integration of Web AS and Microsoft OutLook and there is no need for cross-posting
    VS

  • Optimize a PDF doc with form fields

    Hi All,
    I have completed a PDF with multiple form fields (about 70). It's only one 8.5 x 11 page. It is 2.2 mB large. I've tried different ways of Optimizer but it always removes the input field functionality.
    How can I decrease file size while maintaining the integrity of the form? Thank you so much in advance. PDF attached.
    Dina

    Generally, the only thing that I remove after creating a pdf file with forms that doesn't effect the fields is to remove embedded fonts. It would be best to to all of the other optimizations before creating the form fields.
    That's nice you say, but I've got the form fields already. Try reducing the size (as you have already done), then replace the page in the file with the form fields with the one whose size you have reduced. The form fields should stay. I don't know what happens to the size of the new file, let us know?

  • Can't sync Outlook with iCal - but only when I activate iCloud

    I have seen discussions in the forums about problems syncing Outlook with iCal - however, that is not *exactly* my issue. I can sync them fine, until I put the resulting iCal calendar in iCloud. Then Outook (2011 for Mac) stops syncing with iCal (v. 5.0.3). I take it out of iCloud, it works. What I want to be able to do is: 1. Sync Outlook with iCal. 2. Sync iCal with my iPhone via iCloud.
    I used to manually sync my iPhone (4s) with my work computer (which apparently I could go back to doing if I change the settings in my iPhone?) and just update my work calendar to get it on my phone (my home calendar syncs fine, but it's not integrated with Outlook). I don't want to only use iCal, because I get a lot of Outlook invites for meetings.
    Is this a feature that's just not supported by Apple at this time? Do I need to upgrade my O/S? I'm using Mac OS X 10.7.5 (Mountain Lion).
    In short, I just want my Outlook calendar on my iPhone (ideally, without having to manually sync).

    What kind of iPad and iPhone are you working with.. and what Software version on (5.1.1) is the most recent..

  • How do i sync my task list from MS Outlook with "Reminders"?

    is there a way to sync my extensive Task list form Microsoft Outlook with my Reminders list on the iPod?  it seems like I can only sync contacts, notes and calendar from Outlook.  Am I missing something?   thanks!

    open itunes, connect ipad, select what you want, sync.
    You should really read the manual

  • Facing Issue while Integration Cybersource with ATG

    Hi All,
    I am facing issue with address verification while integrating cybersource with ATG.
    Rest all integration with cybersource are working fine.
    If i used VerifyOrderAddresses and mention addressVerificationProcessor to use CyberSourceAddressVerify , i get the below error related to houseno . box not found
    addressVerificationProcessor=/atg/commerce/payment/CyberSourceAddressVerify
    Can someone please help me on this.
    Need it urgently. Pls let me know if need further details
    TIA,
    Mayank
    Error Log :
    12:03:01,992 INFO [ShoppingCartModifier] DEBUG There are 0 gift certificates to be collected
    12:03:01,993 INFO [ShoppingCartModifier] DEBUG adding CreditCard to the Order
    12:03:02,075 INFO [ShoppingCartModifier] DEBUG no form errors - staying on same page.
    12:03:04,942 INFO [CyberSourceAddressVerify] DEBUG ----- request -----
    12:03:04,946 INFO [STDOUT] ship_to_state=CA
    bill_state=CA
    ship_to_city=San Jose
    bill_city=San Jose
    bill_country=us
    bill_zip=95131
    ship_to_country=us
    ignore_avs=
    merchant_id=mykkaushik
    bill_address2=
    ics_applications=ics_dav
    ship_to_zip=95131
    bill_address1=1, Main St
    ship_to_address2=
    client_lib_version=Sun Microsystems Inc./1.6.0_31/Windows 7/6.1/-/Java/5.0.3
    ship_to_address1=1, Main ST
    merchant_ref_number=pg460011
    12:03:06,320 INFO [CyberSourceAddressVerify] DEBUG ----- response -----
    12:03:06,320 INFO [STDOUT] dav_rcode=0
    ics_rcode=0
    ics_rmsg=House/Box number not found on street.
    request_id=3539115850040180464524
    dav_us_info=S00000
    dav_us_error_info=E421
    request_token=AhijLwSRf7YylSTvL7cYIJ+1EEDyqAJGlwtJMsXXwMhEAAAA/QNM
    dav_rflag=DINVALIDADDRESS
    ics_rflag=DINVALIDADDRESS
    merchant_ref_number=pg460011
    dav_rmsg=House/Box number not found on street.
    12:03:06,364 INFO [ShoppingCartModifier] DEBUG PipelineError: key=InvalidAddress; error={pg460011=House
    12:03:06,367 INFO [ShoppingCartModifier] DEBUG adding form exception: InvalidAddress: House/Box number
    12:03:06,367 INFO [ShoppingCartModifier] DEBUG root cause of exception: null
    12:03:06,368 INFO [ShoppingCartModifier] DEBUG Transaction Marked as Rollback - redirecting to: billing
    12:03:06,369 INFO [ShoppingCartModifier] DEBUG afterSet sees currentTransaction as TransactionImple < a
    nStatus.ABORT_ONLY >
    12:03:06,369 INFO [ShoppingCartModifier] DEBUG afterSet committing transaction TransactionImple < ac, B
    tus.ABORT_ONLY >
    12:03:06,494 INFO [ShoppingCartModifier] DEBUG Released local write lock using id 270000

    It's an issue with the input which you given to the field:House/Box
    Returning Error from Cybersource:
    House/Box number not found on street.
    could you please give valid number here which is the Cybersource service expecting number.

  • Issue with form based Authentication in three tier sharepoint 2013 environment.

    Hi,
    We are facing issue with form based Authentication in three tier environment.
    We are able to add users to the database and in SharePoint.
    But we are not able to login with created users.
    In single tier everything working fine
    Please help , Its urgent ... Thanks in advance.
    Regards,
    Hari
    Regards, Hari

    if the environments match, then it sounds like a kerberos double-hop issue
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Report with Form Passing date to form from report issue

    Hi All ,
    I got stuck up in the below issue .Can anyone point out the issue behind it and how to get rid of this.
    I have created a report page with form page .The report page have 2 column identified as conjugate primary key.the col1 is varchar2 and col2 is date .
    The report page have one link on col1 field which is passing the Item_value for both col1 and col2 to form page .
    In the DB level the col2 data type is date (for e.g : 26/07/2007 07:08:56) .But the probem is when we are clicking on the link of col1 it is displaying error like Error like ORA-01403: no data found .
    But if the data in DB is only in format of DD/MM/YYYY removing the timestmap the link is working fine and returing data for other fields in the form page .
    Could anyone pls pointed out the problem and let us know the issue.
    Thanks in advance.
    Regards,
    Deba

    Hi Deba,
    I suppose your problem is due to the : in the time.
    You're passing these values with the url I suppose? Have a look how APEX generates/constructs the url, it uses : to separate things.
    I'm not sure why you want a date in a Primary Key?
    Thanks,
    Dimitri

  • How to use SSO with Forms application

    Can somebody explain, how can we configure the SSO with Forms application.
    I have two application server instances. One for infrastructre and Other for application.
    Thanks

    Have a look at http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsso.pdf and http://download-uk.oracle.com/docs/cd/B14099_19/web.1012/b14032/sso.htm#i1006721

  • Compiling error ORA-00600 with Forms 6 and Database 10g

    Hi,
    I am using "Oracle Database 10g Enterprise Edition Release 10.1.0.4.0" and "Forms [32 Bit] Version 6.0.8.26.0 " with patch 17, when i compile a form that works with some tables in another database under dblink the error ORA-00600:internal error code, arguments:[16203],[],[],[],[],[],[],[] is displayed.
    If i word with reports or sqlplus no error is displayed.
    Before we installed 10g everything worked ok
    What is wrong with forms or do i need to configure something else?
    Regards
    Yuri V. López Manrique

    I searched for this error on Google and found the following blog:
    Is there a tool to troubleshoot ORA-00600 and ORA-07445 errors?
    February 27th, 2006 By Fahd Mirza
    ORA-00600 and ORA-07445 errors are the most esoteric errors in Oracle.
    There is a tool called “ORA-600/ORA-7445 Troubleshooter” available at Metalink. It asks for the first argument of ORA-600 error with an optional database version number.
    For example, to see the description of the error:
    ORA-00600: internal error code, arguments: [723], [25908], [25908], [memory leak]
    You enter 723 in the “ORA-600 First Argument” field. The first argument is a pointer to where in the code the error was caught and thus is the key information in identifying the problem.
    You can also embed (copy/paste) the “Call Stack Trace” there, and, when you click on the “Search Call Stack” button an advanced MetaLink search is performed to find documents containing relevant sections from the call stack.
    Call Stack extracts from the following files are supported:
    * Generic foreground and background server trace files located in background_dump_dest and user_dump_dest
    * OpenVMS NETV2 and BEQ log files located in ORA_ROOT:[NETWORK.LOG]
    * WINDOWS CORE.LOG files
    * GDB (debugger) backtrace call stacks (best endeavors)
    Of course you will need a login to Oracle's Metalink site.
    Hope that helps,
    c

  • I want to sync tasks in Outlook with my iPhone. I have tried Toodledo (not good) and Todo. Todo works, but it cuts off most of the text. I only get the beginning of my (long) lists. Any ideas how I can solve this problem?

    I want to sync tasks in Outlook with my iPhone. I have tried Toodledo (not good) and Todo. Todo works, but it cuts off most of the text. I only get the beginning of my (long) lists. Any ideas how I can solve this problem? I starting to regret that I switched to iPhone...

    Usually if you have some kind of hardware failure there is some beeping during POST or most motherboards now have LED indicators to produce and error message based on the type of failure
    So if its bad memory, not place properly, mismatched, processor not inserted properly, mismatched voltage or voltage connector not present etc it beeps or generates the error id.
    Power supplies can be tested for failure. There are some walk throughs for testing just them with a switch, paperclip or a jumper (I'd suggest not doing this if you are not familiar with the dangers of electricity).
    Memory can be tested with memory diagnostics programs like Memtest+
    Processors can overheat if the proper precautions have not been taken usually you will get a POST beep or error code for that.
    If the motherboard has no response then do the basics first:
    Check power connectors and power supply. Once you determine that is not the case move on to other items like graphics cards in all the way or memory.

Maybe you are looking for

  • Anyway to find out if/when cabinet will go fiber?

    Hi All,  It's been awhile now I moved into my new build development couple of years ago, all houses/flats are now fully occupied for the past year, so the business justification is there to upgrade the cabinet, is there anyway to find out when it wil

  • Email pictures open much to big in Firefox/Waterfox cant fix it.

    Hello. Im having issues with a new tablet I recent bought, an ASUS Vivo Tab RT. It takes very good photos, but when I open them in certain email clients they are HUGE. They are so big they actually go off the screen. It doesnt happen if I use Outlook

  • Mac OS 10.5.5 or QT 7.5.5 breaks P2 ingestion w/log & transfer

    The title says it all. I just upgraded a Mac Pro 2.8 dual quad-core with Mac OS 10.5.5 and QT 7.5.5. Everything worked spiffy before. Having been around the block several times, I performed all the usual routine maintenance stuff before the upgrade -

  • Nested Table in FF

    MX2004, FF1.5 A nested tabele shows fine in IE, but FF http://www.cbrc.us/Results-VFTT.html Specificly, the category headings, such as "Men <45: 16.1km" seem to wrap in FF, but looks fine FF. I recall a tech bulletin from Macromedia re. this issue, b

  • Purpose of bsscftp.txt files in WebHelp Publish result

    Could someone tell me the purpose of Purpose of bsscftp.txt files in WebHelp Publish result? Are they needed for anything but identifying which files to update? I presume I do not need to include them on the website if I am just collecting changed fi