Sending Mail from Oracle forms or reports
Hi
I have to send mail from forms or reports . Is there any way or builtin to do this.
If anybody have experience in this please give the
detailed example on this.
Regards
Arun
Look at http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/maildemo_sql.txt
It creates a package in the database for sending mail.
If you want to send mail from the local machine using Outlook, you'll have to use OLE, but it's not something I've tried.
Similar Messages
-
Live Demo of sending SMS from Oracle Forms.
I've just a posted a live demo of how to develop code to call a web service to send and SMS from Oracle Forms.
Regards
Grant
http://otn.oracle.com/formsdesignerj2ee
http://groundside.com/blog/GrantRonald?title=live_demo_of_sending_an_sms_from_forms&more=1&c=1&tb=1&pb=1Welcome to the Oracle Forums. Please take a few minutes to review the following:
<ul>
<li>Before posting on this forum please read
<li>10 Commandments for the OTN Forums Member
<li>Announcement: Forums Etiquette / Reward Points
</ul>
Do anybody know about sending the sms from oracle forms.If anybody had means please send me the script...... This is a commonly asked question. Have you tried searching the forum for possible solutions? Take a look at this search result. I would also recommend you take a look at the Oracle Forms Services 11g web page and scroll down to the Oracle Forms 11g calling a web service link. This is a white paper published by Grant Ronald that specifically describes the process of sending SMS from Oracle Forms.
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Sending mail from oracle procedure
Hi Experts,
I want to send mail from oracle Procedure. Anybody please help me out.
Thanks.BEGIN
UTL_MAIL.send(sender => '[email protected]',
recipients => '[email protected],[email protected]',
cc => '[email protected]',
bcc => '[email protected]',
subject => 'UTL_MAIL Test',
message => 'If you get this message it worked!');END; -
Sending email from Oracle Forms with attachments
Hi,
Is there any package or option available in Oracle forms to send email with attachments?
Your reply will be highly appreciated.
Regds,
nonedaThere are a couple of ways to send email (with attachements) from Oracle Forms. Check out these links to some examples.
using OLE2 or CLIENT_OLE2 to access a mail-client via Mail-Api ( Get and set Outlook properties )
using MAILTO in conjunction with HOST or CLIENT_HOST to "start" a mail-client ( Re: Open Microsoft Outlook new massage with TO containing the email address )
using UTL_SMTP for database-side-mailing ( Re: Send mail with attachment )
Hope this helps,
Craig... -
How to sending email from Oracle Forms
How to sending email from Oracle 6i(Forms)
I need to send email to a distribution list(multiple email addresses).send email of multiple email address
[email protected],[email protected],[email protected]
create or replace function mailout
(sender in varchar2,
recipient in varchar2,
ccrecipient in varchar2,
subject in varchar2,
message in varchar2) return number
is
crlf varchar2(2) := chr(13)||chr(10);
connection utl_smtp.connection;
mailhost varchar2(50) := 'Add email server Ip Address here';
header varchar2(4000);
v_num number :=1;
str number:=0;
email varchar2(50);
begin
connection := utl_smtp.open_connection(mailhost,25);
header := 'Date: '||to_char(sysdate,'dd mon yy hh24:mi:ss')||crlf||
'From: '||sender||' '||crlf||
'Subject: '||subject||crlf||
'To: '||recipient||crlf||
'Cc: '||ccrecipient||crlf||message;
utl_smtp.helo(connection,mailhost);
utl_smtp.mail(connection,sender);
utl_smtp.rcpt(connection,recipient);
while (instr(ccrecipient,',',1,v_num)>0) loop
email:=substr(ccrecipient,str+1,instr(ccrecipient,',',1,v_num)-str-1);
dbms_output.put_line(email);
utl_smtp.rcpt(connection,email);
str:=instr(ccrecipient,',',1,v_num);
v_num:=v_num+1;
end loop;
utl_smtp.open_data(connection);
-- utl_smtp.write_data(connection,header);
utl_smtp.write_data(connection,'MIME-Version:1.0'||crlf||'Content-type:text/html'||crlf||header);
utl_smtp.close_data(connection);
utl_smtp.quit(connection);
return 0;
exception
when utl_smtp.invalid_operation then
dbms_output.put_line('Invalid Operation in SMTP transaction');
return 1;
when utl_smtp.transient_error then
dbms_output.put_line('Temporary problem with sending email ');
return 2;
when utl_smtp.permanent_error then
dbms_output.put_line('Permanent problem with sending email ');
return 3;
end; -
Send mail from oracle database 10g
Hi ,
I need to send a test mail from oracle database 10g to my gmail account through a stored procedure .
I will pass the list of recipents , subject and text of the mail through parameters .
Can anyone give me the code of the storerd procedure please ,
Thank you .hi, for example
DECLARE
mail_conn UTL_SMTP.connection;
smtp_relay VARCHAR2(32) := '172.16.x.x';
recipient_address VARCHAR2(64) := '[email protected]';
sender_address VARCHAR2(64) := '[email protected]';
mail_port NUMBER := 25;
msg VARCHAR2(200);
BEGIN
mail_conn := UTL_SMTP.open_connection(smtp_relay,mail_port);
UTL_SMTP.HELO(mail_conn, smtp_relay);
UTL_SMTP.MAIL(mail_conn, sender_address);
UTL_SMTP.RCPT(mail_conn, recipient_address);
UTL_SMTP.DATA(mail_conn, 'Payment request iniated');
UTL_SMTP.QUIT(mail_conn);
end; -
How to send mails from Oracle database
Hi All,
I want to send a mail from my oracle database once my store
procedure runs successfully or fails.
How can i do this.
what are the preliminary modules of Oracle which need to be
active for me to do so.
If any once can also mention about any links that give
information about the same it will be very helpful for me.
Thanks and Regards
Srinivas CheboluCREATE OR REPLACE PROCEDURE SEND_MAIL_TCP(
msg_from varchar2 := '[email protected]',
msg_to varchar2,
msg_subject varchar2 := 'E-Mail message from your database',
msg_text varchar2 := '' )
IS
c utl_tcp.connection;
rc integer;
BEGIN
c := utl_tcp.open_connection('1.17.0.218', 25); -- open the SMTP
port 25 on local machine
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
rc := utl_tcp.write_line(c, 'HELO localhost');
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
rc := utl_tcp.write_line(c, 'MAIL FROM: '||msg_from);
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
rc := utl_tcp.write_line(c, 'RCPT TO: '||msg_to);
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
rc := utl_tcp.write_line(c, 'DATA'); -- Start message body
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
rc := utl_tcp.write_line(c, 'Subject: '||msg_subject);
rc := utl_tcp.write_line(c, '');
rc := utl_tcp.write_line(c, msg_text);
rc := utl_tcp.write_line(c, '.'); -- End of message body
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
rc := utl_tcp.write_line(c, 'QUIT');
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
utl_tcp.close_connection(c); -- Close the connection
EXCEPTION
when others then
raise_application_error(-20000,'Unable to send e-mail message
from pl/sql');
END;
show errors
exec send_mail(msg_to =>'[email protected]');
exec send_mail(msg_to
=>[email protected]',msg_text=>'Look Yaar, I can send
mail from plsql'); -
How do you extract SQL from Oracle Forms and Reports files?
I am developing an "as is" data model for a government client for a 14 year old system that has three databases, 20 schemas, over 1500 tables, and over 23,000 columns. Needless to say, I do not plan to perform a manual mapping of data to screens and reports.
Most of the system has been developed in Oracle Forms and Reports. I am trying to map the live tables and columns to forms and reports.
The process here has been to save the forms and reports files as .fmb and .rdf files. The client does not have an available copy of Oracle Designer, which I understand could be used to extract the SQL.
Is there a utility somewhere that can parse the .fmb and .rdf files to extract the SQL?
Thanks,
Jim GearingJim,
I don't know of any utility that will do this. You can convert and save each fmb as a fmt so you can view/search the contents , but I don't recommend that approach.
On the other hand, you download a copy of Oracle Designer:
http://www.oracle.com/technology/software/index.html
It usually is included with Oracle Forms and Reports. -
How send mail from Oracle stored procedure?
Hi,
I need send mail using Oracle stored procedure. Can anybody helpme with any recomendation about that, sample code or so?.
[email protected]
nullHi Raul Martinez
utl_smtp package is available since oracle 8.1.6.
If U have a older version then U can not.
Thank U.
edwin -
how can i send e-mail from within the form and without opening any e-mail program
just one click on a button in the form the mail will be sent
i'm working on nt osI use a program called BLAT which is a command line utility to send SMTP messages.
( Use the HOST built-in ).
I tried using MAPI products but they did not work well on the web.
null -
E-mail from oracle form - suppress dialog window
sending mail on commit using Oracle form4.5 - OLE2 built-in package.
The default mail is Microsoft office outlook 2003.
I get a microsoft office outlook dialog with the following message.
" A program is trying to automatically send e-mail on your behalf.
Do you want to allow this?
If this is unexpected, this may be virus and you should choose 'NO' "
In outlook express, there is a option to disable this. Under Tools -> Options -> Security tab : Warn me when other applications try to send mail as me'
Could anyone let me know as to how to suppress the dialog box please.Hi,
I've no idea how you can suppress such an message in MS Outlook. I'm a little bit surprised though, you have chosen an OLE2 approach. Why don't you simply send e-mail messages from the database using utl_smtp or utl_mail ?
Hope this helps,
Matthieu -
I have installed Oracle 10g (10.2.0.1) on Windows XP (SP2) machine at my home PC.There is a broadband connection on my home PC.I have installed UTL_MAIL package and then set SMTP_OUT_PARAMETER by the following SQL Statement.
My machine IP address is 192.168.0.3
SQl> alter system set smtp_out_server = 'smtp.bsnl.in:25' scope = 25;
Then we run the following script.
BEGIN
UTL_MAIL.SEND(
SENDER => '[email protected]',
RECIPIENTS => '[email protected]',
SUBJECT => 'Testing UTL_MAIL',
MESSAGE => 'The receipt of this email means'||
'that it works for UTL_MAIL'
END;
Then following error message comes.
BEGIN
ERROR at line 1:
ORA-29279: SMTP permanent error: 553 Authentication is required to send mail as
<[email protected]>
ORA-06512: at "SYS.UTL_SMTP", line 21
ORA-06512: at "SYS.UTL_SMTP", line 99
ORA-06512: at "SYS.UTL_SMTP", line 222
ORA-06512: at "SYS.UTL_MAIL", line 407
ORA-06512: at "SYS.UTL_MAIL", line 594
ORA-06512: at line 2
Can anybody suggest the solution of the above problem.Hi,
is your smtp server configured to use anonymous connection?
Attackwave
Reply Code Description
211 System status, or system help reply
214 Help message [Information on how to use the receiver or the meaning of a particular non-standard command; this reply is useful only to the human user]
220 <domain> Service ready
221 <domain> Service closing transmission channel
250 Requested mail action okay, completed
251 User not local; will forward to <forward-path>
252 OK, pending messages for node <node> started. Cannot VRFY user (for example, info is not local), but will take message for this user and attempt delivery.
253 OK, <messages> pending messages for node <node> started
354 Start mail input; end with <CRLF>.<CRLF>
355 Octet-offset is the transaction offset
421 <domain> Service not available, closing transmission channel (This may be a reply to any command if the service knows it must shut down.)
450 Requested mail action not taken: mailbox unavailable [for example, mailbox busy]
451 Requested action terminated: local error in processing
452 Requested action not taken: insufficient system storage
453 You have no mail.
454 TLS not available due to temporary reason. Encryption required for requested authentication mechanism.
458 Unable to queue messages for node <node>
459 Node <node> not allowed: reason
500 Syntax error, command unrecognized (This may include errors such as command line too long.)
501 Syntax error in parameters or arguments
502 Command not implemented
503 Bad sequence of commands
504 Command parameter not implemented
521 <Machine> does not accept mail.
530 Must issue a STARTTLS command first. Encryption required for requested authentication.
534 Authentication mechanism is too weak.
538 Encryption required for requested authentication mechanism.
550 Requested action not taken: mailbox unavailable [for , mailbox not found, no access]
551 User not local; please try <forward-path>
552 Requested mail action terminated: exceeded storage allocation
*553 Requested action not taken: mailbox name not allowed [for example, mailbox syntax incorrect]*
554 Transaction failed -
Howe to send sms from oracle forms
i need your help plzz i wana to send sms from my applicatin
in normal case you will need an provider for sending sms (pswin,clickatell...) and the easiest way send sms is with a http-api, provided by most of these providers.
You can do the http-request in forms, by using web.show_document or webutil or, that is the method i prefer put it in the database and let a stored procedure handle the sms-sending. Here is a example of using such an api:
url := 'http://xxx.xxx.com/send/?typ=2&from=mecker&to='
|| UTL_URL.escape(vMobileNo, true, 'ISO-8859-1')
|| '&txt=' || UTL_URL.escape(vMessageText, true, 'ISO-8859-1')
||'&id=myaccount&pwd=testpw&autoroute=1';
UTL_HTTP.SET_TRANSFER_TIMEOUT(120);
resp_pieces := utl_http.request_pieces(url);
for i in 1..resp_pieces.count loop
value := value || resp_pieces(i);
end loop;
There is another example on the pswin homepage at:
http://www.pswin.com/_pswincom/Downloads/SMS_UTIL.PKS.txt
I am also sending SMS with unicode, a little bit more complex, if you need unicode-characters let me know ([email protected]), i will give you an example. -
Sending email from oracle forms
Hi, I want to send an email within oracle forms 10g.
If anyone could help me.
Thanks.Hi,
I didn't understand.....
Isn't it convienient to you , to create a button , for example , and call the UTL_MAIL.SEND(......<parameters given in text items of your form>......) buolt in procedure....????? or the equivalent procedure in UTL_SMTP ....????
Regards,
Simon -
Dear Expert's,
When am executing this block, there are no any error. but mail can't received.
So, please give me solution.
DECLARE
mailhost VARCHAR2 (64) := '000.000.000.000'; --SMTP Server IP (smtp port is 25)
sender VARCHAR2 (64) := '[email protected]';
recipient VARCHAR2 (64) := '[email protected]';
mail_conn UTL_SMTP.connection;
BEGIN
mail_conn := UTL_SMTP.open_connection (mailhost, 25);
UTL_SMTP.helo (mail_conn, mailhost);
UTL_SMTP.mail (mail_conn, sender);
UTL_SMTP.rcpt (mail_conn, recipient);
UTL_SMTP.open_data (mail_conn);
UTL_SMTP.write_data (mail_conn, 'This is a test message.' || CHR (13));
UTL_SMTP.write_data (mail_conn, 'This is line 2.' || CHR (13));
UTL_SMTP.close_data (mail_conn);
UTL_SMTP.quit (mail_conn);
END;
Edited by: Viveka Nand on Nov 17, 2011 2:35 AMHi Vivek,
Oracle 11g can support utl_mail package. But I don't know whether your organization is installed in server or not.
If not please raise a request to your DBA and Installed it. Then you can use utl_mail package. While using this package, please note the following things.
rerequisites:
I need to execute these two scripts as sysdba;
@$ORACLE_HOME/rdbms/admin/utlmail.sql;
@$ORACLE_HOME/rdbms/admin/prvtmail.plb;
Then I have to configure smtp server information in init.ora file . or spfile.
smtp_out_server = 43.88.67.14:25
Then execute this commond as sysdba;
alter system set smtp_out_server = '43.88.67.14:25' scope=both;
exec utl_mail.send(sender => '[email protected]',
recipients => '[email protected]','[email protected]',
subject => 'Testing Mail',
message => 'Hi..This is a test mail');
grant execute permission on UTL_MAIL package.
eg: grant execute on utl_mail to <schema>;
Note: you can't send to Gmail..yahoo..etc...This is with in your org.
Maybe you are looking for
-
Slow gif animations from photoshop
Hi all. I have to create two small gif animations. Each one is only 10 frames and the file size of my animations is under 40k when exported. But no matter what timing setting I use, they seem sluggish when viewed in any browser (FF, IE, Safari). I've
-
External Hard Drives Mysteriously Losing Read/Write Privileges...
I am currently running 10.5.8 OSX and for some reason all of my external hard drives are mysteriously losing their Read/Write privileges on my Mac Pro. I have not altered anything within my account or settings to my knowledge. I continue to have to u
-
Imported Photos Turning Green!
Weird - Aperture and iPhoto tinting my pics GREEN! I am importing photos from my Canon D60 CF card via a Lexar FireWire card reader - which I have done many, many times - and after they are in a new Aperture project, they are being tinted green - I m
-
How can I opt-out of Windows Deployment?
I acquired the hacker in January. In February both of my computers were destroyed. I removed ALL forms of networking from my house -- TWC, all of my routers and adapters, etc. I went to Best Buy and bought a new computer, then another, then 2 more
-
ADF Menutabs are rendered extremely small
I have tried to follow the chapter in help called: ´Using Dynamic Menus for Navigation´, and I've ´successfully´ got the menutabs rendered, only they are extremely small (like 2x8 pixels). Any suggestions on what is wrong?