Home » Developer & Programmer » Forms » how to send email through Form 6i using oracle 8.1.5 as backend
how to send email through Form 6i using oracle 8.1.5 as backend [message #85799] Thu, 29 July 2004 20:52 Go to next message
Ritesh
Messages: 38
Registered: November 2001
Member
hello friends
i wants to send email through forms 6i.
i am writing the following code on when-button-pressed trigger. it is running fine but don't send any mail to destination.
Please give any solution.
********My Code is********

DECLARE
objOutlook OLE2.OBJ_TYPE;
objMail OLE2.OBJ_TYPE;
objArg OLE2.LIST_TYPE;
BEGIN

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

objarg := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(objarg,0);
objMail := OLE2.INVOKE_OBJ(objOutlook,'CreateItem',objarg);
OLE2.DESTROY_ARGLIST(objarg);

OLE2.SET_PROPERTY(objmail,'To',:TO);
OLE2.SET_PROPERTY(objmail,'Subject',:SUBJECT);
OLE2.SET_PROPERTY(objmail,'Body',:BODY);

OLE2.INVOKE(objmail,'Send');
OLE2.INVOKE(objmail,'Display');
OLE2.RELEASE_OBJ(objmail);
OLE2.RELEASE_OBJ(objOutlook);

Message('Your mail sent successfully..............');
Message('Your mail sent successfully..............');

END;

i have also written a procedure using SMTP but it is giving an error, since oracle 8.1.5 does not support SMTP.
Re: how to send email through Form 6i using oracle 8.1.5 as backend [message #85906 is a reply to message #85799] Tue, 10 August 2004 15:29 Go to previous message
Zain
Messages: 30
Registered: October 2003
Member
With 8i, you should be able to use util.smtp package. Just make sure that the database is java enabled. Your DBAs should be able to set it up for you.
Previous Topic: Linking to a logo in my forms
Next Topic: How to use Global Variables
Goto Forum:
  


Current Time: Tue Aug 06 23:20:40 CDT 2024