Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re:How to programatically send an email using Lotus Notes fr
Faiz,
I'll make the assumption that your using an Oracle 8i (8.1.6 or better) as the database server. In which case you can use the DBMS_SMTP package in Jserver to send the mail to any mail client you want, especially since you obviously can get Internet mail. Here is a wrapper I've written to use this capability, modify to your hearts content.
Dick Goulet
procedure vicor_mail(addressee in varchar2, subject in varchar2,
message in varchar2, sender in varchar2default null) is
v_crlf VARCHAR2(2):= CHR(13)||CHR(10); v_msg varchar2(4000); v_add_src varchar2(2000); v_addr varchar2(40);
v_addr := substr(v_add_src, slen, instr(substr(v_add_src, slen),',')-1); slen := slen+instr(substr(v_add_src, slen),','); utl_smtp.rcpt(c, v_addr);
utl_smtp.open_data(c); while(a < length(v_msg)) loop msg_chunck := substr(v_msg, a, 2000); a := a+length(msg_chunck); utl_smtp.write_data(c,msg_chunck); end loop; utl_smtp.close_data(c);
____________________Reply Separator____________________ Author: "FAIZ QURESHI" <faizq_at_hotmail.com> Date: 6/24/2002 2:23 AM
Hello All:
I am using Oracle Forms 6i. I have a Form where I have to send an email of
the data entered in the Form using Lotus Notes email.
Does anyone know how this can be done ?
Please guide me. If possible please send me the code for doing this.
Regards,
Faiz
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: FAIZ QURESHI
INET: faizq_at_hotmail.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Jun 24 2002 - 08:48:25 CDT
![]() |
![]() |