Solved

how to open email and pass in text from Oracle Forms 6i ?

Posted on 2004-04-15
2
503 Views
Last Modified: 2013-12-12
Hi,

I'd like to place a button on my Form which when pressed opens Outlook and pastes some text from the Form into the email body.

Whats the best way to do this ?

Rgds

CC
0
Comment
Question by:comradec
2 Comments
 
LVL 6

Accepted Solution

by:
musdu earned 150 total points
ID: 10834952
Hi,

create a button on your form and copy-paste following code.

regards

--------------

DECLARE

  -- check path of your outlook.exe on your PC ! ! !
 
  vOutlookExe VARCHAR2(300) := 'C:\Program Files\Microsoft Office\Office10\OUTLOOK.EXE -c IPM.Note /m ';
  vTO VARCHAR2(100) := 'musdu@yahoo.com';
  vCC VARCHAR2(100) := 'someone@yahoo.com';
  vBCC VARCHAR2(100) := 'someoneelse@yahoo.com';
  vSubject VARCHAR2(300) := 'This is subject of my mail';
  vBody VARCHAR2(2000) := 'This is body of my mail. ';
 
BEGIN

  Host(
    vOutlookExe||
    '"mailto:'||vTO||
    '?cc='||vCC||                                                -- if you don't want a cc, comment this line
    '&bcc='||vBCC||                                          -- if you don't want a bcc, comment this line
    '&subject='||vSubject||                  -- if you don't want a subject, comment this line
    '&body='||vBody||                                    -- if you don't want a body, comment this line
    '"'
  );

END;
0
 

Author Comment

by:comradec
ID: 10840718
Thanks Musdu,

Thats exactly what I want.

Cheers

CC
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Schema creation in Oracle12c 6 46
How to free up undo space? 3 40
exp/imp 25 73
Where Does Time Value Come From for Database Insert or Update 4 27
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question