Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Internet & the Web   »   send mail from oracle forms

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old Dec 31, 2005, 09:23 PM
hiswapna
New Member
hiswapna is offline
 
Join Date: Dec 2005
Posts: 1
hiswapna See this member's comment history on his/her Profile page.
send mail from oracle forms

Hello

How can i send a mail from oracle forms

Regards
Swapna

Reply With Quote
 
     

Answers
 
 
Old Apr 3, 2007, 03:41 AM   #2  
abdhalm
New Member
abdhalm is offline
 
Join Date: Apr 2007
Posts: 2
abdhalm See this member's comment history on his/her Profile page.
Declare

objOutlook CLIENT_OLE2.OBJ_TYPE;
objMail CLIENT_OLE2.OBJ_TYPE;
objArg CLIENT_OLE2.LIST_TYPE;
objAttach CLIENT_OLE2.OBJ_TYPE;

BEGIN

objOutlook := CLIENT_OLE2.CREATE_OBJ('Outlook.Application');

-- Previous example usually used 'mapi.session' but this doesn't work correctly
--anymore.
objarg := CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.ADD_ARG(objarg,0);

objMail := CLIENT_OLE2.INVOKE_OBJ(objOutlook,'CreateItem', objarg);
CLIENT_OLE2.DESTROY_ARGLIST(objarg);

objAttach := CLIENT_OLE2.GET_OBJ_PROPERTY(objmail, 'Attachments');

objarg := CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.ADD_ARG(objarg,'c:\temp\test.txt'); -- filename

CLIENT_OLE2.SET_PROPERTY(objmail,'To','Joe.Friday@ oracle.com');

CLIENT_OLE2.SET_PROPERTY(objmail,'Subject','Email sent from Oracle Forms 9i');
CLIENT_OLE2.SET_PROPERTY(objmail,'Body','This is an email that was sent using
CLIENT_OLE2 from Oracle forms 9i');
CLIENT_OLE2.INVOKE(objattach, 'Add', objarg);
CLIENT_OLE2.INVOKE(objmail,'Send');

CLIENT_OLE2.RELEASE_OBJ(objmail);
CLIENT_OLE2.RELEASE_OBJ(objOutlook);
CLIENT_OLE2.DESTROY_ARGLIST(objarg);

END;
  Reply With Quote
 
     
 
 
Old Dec 11, 2007, 07:51 PM   #3  
jai soni
New Member
jai soni is offline
 
Join Date: Dec 2007
Posts: 1
jai soni See this member's comment history on his/her Profile page.
i am unable to call the variable defined in declare section.
error like: CLIENT_OLE2.OBJ_TYPE must be declared

give solution immediately.


Quote:
Originally Posted by abdhalm
Declare

objOutlook CLIENT_OLE2.OBJ_TYPE;
objMail CLIENT_OLE2.OBJ_TYPE;
objArg CLIENT_OLE2.LIST_TYPE;
objAttach CLIENT_OLE2.OBJ_TYPE;

BEGIN

objOutlook := CLIENT_OLE2.CREATE_OBJ('Outlook.Application');

-- Previous example usually used 'mapi.session' but this doesn't work correctly
--anymore.
objarg := CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.ADD_ARG(objarg,0);

objMail := CLIENT_OLE2.INVOKE_OBJ(objOutlook,'CreateItem', objarg);
CLIENT_OLE2.DESTROY_ARGLIST(objarg);

objAttach := CLIENT_OLE2.GET_OBJ_PROPERTY(objmail, 'Attachments');

objarg := CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.ADD_ARG(objarg,'c:\temp\test.txt'); -- filename

CLIENT_OLE2.SET_PROPERTY(objmail,'To','Joe.Friday@ oracle.com');

CLIENT_OLE2.SET_PROPERTY(objmail,'Subject','Email sent from Oracle Forms 9i');
CLIENT_OLE2.SET_PROPERTY(objmail,'Body','This is an email that was sent using
CLIENT_OLE2 from Oracle forms 9i');
CLIENT_OLE2.INVOKE(objattach, 'Add', objarg);
CLIENT_OLE2.INVOKE(objmail,'Send');

CLIENT_OLE2.RELEASE_OBJ(objmail);
CLIENT_OLE2.RELEASE_OBJ(objOutlook);
CLIENT_OLE2.DESTROY_ARGLIST(objarg);

END;
  Reply With Quote
 
     


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
ORACLE chandrakant Oracle 3 Jun 26, 2008 06:32 AM
oracle ngsheta Oracle 2 Jun 26, 2008 06:20 AM
Oracle SQL waraicho MySQL 0 Sep 21, 2006 05:50 AM
can recieve e mail but can't send Dave B Email 0 Jan 28, 2006 07:27 PM
E-Mail wont send through OUTLOOK Navarre Email 1 Oct 24, 2004 04:03 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 05:24 PM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.