whenever i am trying to send mail via outlook from oracle developer forms 6i it asked for a confirmation from user. ie:---
a program is trying to automatically send email on your behalf
do you want to allow this?
if this is unexpected it may be virus and you should choose no
I dont want to show this message this mail should go without confirmation
becouse this hampers our security level. Please solve my problem.
i am sendeng you example of coding
PROCEDURE inmail IS
BEGIN
Declare
objOutlook OLE2.OBJ_TYPE;
objMail OLE2.OBJ_TYPE;
objArg OLE2.LIST_TYPE;
objAttach OLE2.OBJ_TYPE;
MSENT OUTWARD_CHALLAN_MASTER.SENTTO%TYPE;
MISS OUTWARD_CHALLAN_MASTER.ISSUEDBY%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);
SELECT ISSUEDBY,SENTTO INTO MISS,MSENT FROM OUTWARD_CHALLAN_MASTER WHERE CHALLANNO=:OUTWARD_CHALLAN_MASTER.CHALLANNO;
OLE2.SET_PROPERTY(objmail,'To',xyz@company.com');
OLE2.SET_PROPERTY(objmail,'Subject','t : Outward Challan Generated ('||:OUTWARD_CHALLAN_MASTER.CHALLANNO||') ..');
OLE2.SET_PROPERTY(objmail,'Body','This is to inform that Fixed Asset has been sent with following details.
Outward Challan # = '||:OUTWARD_CHALLAN_MASTER.CHALLANNO||'
Sent to := '||MSENT||'
Issued By := '||MISS||'
Pls look into ... for detail.');
OLE2.INVOKE(objattach, 'Add', objarg);
OLE2.INVOKE(objmail,'Send');
END;
END;
Software/Hardware used:
ASKED:
April 13, 2009 9:06 AM
UPDATED:
May 12, 2011 12:12 PM