How send mail from forms 10g
hi all,
can any help in this,
i want send a mail from forms 10g,how???
thanx in advace,
chands
hi,
my oracle version is 10.1.0.4.2
this is my code....
PROCEDURE Send_Mail_001 (sender IN VARCHAR2,
recipient IN VARCHAR2,
subject IN VARCHAR2,
message IN VARCHAR2)
IS
mailhost VARCHAR2(30) := '10.192.30.12';
mail_conn utl_smtp.connection;
TEST VARCHAR2(100);
crlf VARCHAR2(2):= CHR( 13 ) || CHR( 10 );
mesg VARCHAR2(2000);
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);
mesg:= 'Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || crlf ||
'From: ' || sender || crlf ||
'To: ' || recipient || crlf ||
'Subject: '|| subject || crlf;
mesg:= mesg || ' ' || crlf || crlf || message ||'.' || crlf || '.'|| crlf;
UTL_SMTP.OPEN_DATA(mail_conn);
utl_smtp.write_data (mail_conn, mesg);
/* body of email with multiple
utl_smtp.write_data (v_mail_conn, v_message);
call to write_data
utl_smtp.write_data (mail_conn, mesg);
UTL_SMTP.CLOSE_DATA(mail_conn);
utl_smtp.quit(mail_conn);
premia_wf_log('mail','hi');
EXCEPTION
WHEN OTHERS THEN
premia_wf_log('mail',sqlerrm);
END;
can u help me in this..........
thanx in advance
chands
Similar Messages
-
Do you know how to send mail from forms?
Thank youUTL_SMTP
UTL_SMTP is designed for sending e-mail over Simple Mail Transfer Protocol (SMTP). It does not have the functionality to implement an SMTP server for mail clients to send e-mail using SMTP.
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/u_smtp.htm#ARPLS074
Joel Pérez -
NEED TO SEND MAIL FROM FORMS...
DEAR ALL,
I NEED TO SEND MAIL FROM FORMS WHEN I PRESS THE MAIL BUTTON.
I HAVE NO IDEA FOR THIS CRITERIA. IF ANY ONE EXPERIENCED WITH
THIS CRITERIA, PLS HELP ME AND GIVE ME THE CODING FOR THAT.
AND ALSO PLS EXPLAIN EACH LINE OF CODING, WHICH U POST.
THANKS IN ADVANCE
S.BERNANDASYour requirement can be done in forms. Good amounts of advice here. There 244 messages this year alone that fit the search criteria in the Oracle Forms forum.
-
Who send mail from Forms 6i Builder?????
I need send mail from Forms 6i Builder
Please help me.
Write me to [email protected]
thanks.I need send mail from Forms 6i Builder
Please help me.
Write me to [email protected]
thanks. -
How to send mail from FORMS and PL/SQL
I want to send a mail from forms + PL/sql.
I do not want to create a new C program and to make it as USER_EXIT.
The called function suppose to send it through the default email method as per the NT or UNIX setup.
ThanksThanks for your reply.
It requires JServer. We have many clinets around the world and some of them are still running Oracle 7.3.
Any other sleek solution? -
Hi all
i'm sending mail through Forms 6i, i want to save all sent message into
"sent message" folder in outlook, can anybody help me.
thx
v k ravi (Noida,India)google : vb outlook 2003
-
My requirement is to send mail/intimation from forms in case of promotion/appraisal of employee is done.
Plz tell how to do this.
Regards,
Alokyou can send emails in forms through various techniques. External programs like qmail.exe or something else.
In the newer databases you have the functionality to send emails in the db.
Search this forum for utl_smtp. There are many postings with sourcecode -
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 -
How send mail from stored procedure
How to send a mail from a PL/SQL procedure.I am Writing a Batch program and if the program fails to due to data errors mail needs to be sent to the users indicating that the process is failed.Can anyone please point to any resources.Thanks
How to send a mail from a PL/SQL procedure.I am Writing a Batch program and if the program fails to due to data errors mail needs to be sent to the users indicating that the process is failed.Can anyone please point to any resources.
Create this procedure in your database:
PROCEDURE test_mail
(sender IN VARCHAR2,
recipient IN VARCHAR2,
subj IN VARCHAR2,
body IN VARCHAR2)
IS
crlf VARCHAR2(2):= CHR( 13 ) || CHR( 10 );
mesg VARCHAR2(4000);
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);
mesg:= 'Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || crlf ||
'From: ' || sender || crlf ||
'To: ' || recipient || crlf ||
'Subject: ' || subj || crlf;
mesg:= mesg || '' || crlf || body;
utl_smtp.data(mail_conn, mesg);
utl_smtp.quit(mail_conn);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(sqlerrm);
END;
Let me know in case of any concerns..
Chow
Peyush -
Hi,
I am using form 6i, window xp and microsoft outlook 2002,
I have a mail_pkg.pll to send mail
but I am getting error in below line
g_outbox := ole2.get_obj_property(session, 'outbox');
this line returning 0 and showing error message 305500: non-ORACLE exception
Can you please help me to fix this issue,
Thanks
MohanHi,
Can anybody please provide suggestion to fix my above problem. -
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 -
Send Mail from Form (DW CS4)
I have created a site in Dreamweaver CS4. I have a page with
a form and a submit button. I will eventually move this into Cold
Fusion, but in the meantime when the end user hits "submit" I want
their info to come to my email. Any ideas or
recommendations?There are only two ways to process form data -
1. Use mailto:[email protected] as the action of the form
2. Use a server-side scripting method to a) harvest the
form's data, b)
process it in some manner, e.g., enter it into a database, c)
formulate and
send an email to one or more email recipients, and d)
redirect the visitor
to some ending page
Method 1 is quite simple, and is also the least reliable. It
depends both
on your visitor having an email client already installed on
their computer -
this eliminates public computers, or home users without email
clients
installed (more and more it seems) - and on the installed
email client
responding to
the mailto call. It is not possible to use this method *and*
send the
visitor to a
thank you page as well.
Method 2a is the preferred method, since it eliminates the
problems of
method
1, but it means that you have to grapple with
server-scripting somehow (ASP,
CF, PHP, perl, etc.).
Method 2b would be to use some third-party form processing,
like
http://www.bebosoft.com/products/formstogo/,
or if your server supports PHP,
you could investigate
http://www.geekministry.com/formbuilder/,
a very nice
product by a frequent poster here.
You would have to decide which of these methods is best for
your needs,
but if it's Method 2a, then start by asking your host what
they provide for
form
processing. If it's 2b, then read their FAQ/instructions
carefully.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"mleozapper" <[email protected]> wrote in
message
news:[email protected]...
>I have created a site in Dreamweaver CS4. I have a page
with a form and a
> submit button. I will eventually move this into Cold
Fusion, but in the
> meantime when the end user hits "submit" I want their
info to come to my
> email.
> Any ideas or recommendations?
> -
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
ArunLook 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. -
How to send formatted mail from form 6i
Hi,
There is requirment in my project to send formatted mail from form 6i.The database used in 9i.In normal form we can send normal mail.However our requirment is such that the mail content should have company logao pics and it should display data in coloured format based on data fetched from database.How can this be done.
lWhat method are you using to send email from your form now? If you are using UTL_SMTP, you can set the MIME_TYPE = 'HTML' as Francois suggests. If you are using an OLE call to Outlook or a email JavaBean? The method you use to send email will dictate how you send Rich Text/HTML email messages.
Craig... -
How to Send mail in oracle 10g
I am new in oracle developer.....we are using oracle 10g developer...how to send mail through oracle 10g on a button click.pease help me.
Thanks in advanceThis question have been asked many times on this forum, see if you get help from following:
https://forums.oracle.com/message/5395438#5395438
Search results: https://forums.oracle.com/thread/search.jspa?peopleEnabled=true&userID=&containerType=&container=&q=form+email
Check this out as well:
http://nzchaudhry.wordpress.com/2013/05/31/send-report-via-email-attachment-in-oracle-forms-10g/
You can find init.ora or initSID.ora file under $ORACLE_HOME/dbs on linux and on Windows under $ORACLE_HOME/database. Otherwise you can create it using "create pfile from spfile" command
Aneel
Maybe you are looking for
-
Hello SDNers, I'm trying to upgrade the SPS to 14. I got into error in the last one "sap.com/CAF". All the other components are in SP16. The error which i am getting is , For detailed information see the log file of the Deploy Service. 09/01/13 10:51
-
HT1923 msvcr80.dll error on Windows 7
I began with a msvcr80.dll error on Windows 7. Searching I discovered it was iTunes giving me grief so I attempted to uninstall it. I tried the steps on an Apple web page (can't find it now but it is the same here: http://pcsupport.about.com/od/findb
-
How to cancel confirmation which is in error
Helly Guys, I have created a PO with wrong G/L account, and confirmantion has been done but with error. G/R couldn't be created due to the error. I was able to correct the PO in SRM with correct G/L account and it auto changed in ECC but when it
-
Reader SCUP confusion - flawed detection logic?
I'm starting to test the deployment of Reader updates via SCUP. What I'm seeing is that Config Manager says I have X number of clients that require Reader 11.0.n - fine. It seems confused about what systems need which update, though. E.g. it says th
-
How do you creat customized ringtones in iphone5? None of the methods I've looked up seem to work.