Sending an email from forms
hi all,
i need your help.i.e how to send an email from forms .we actually want that facility in our project.we are trying for that but not yet geting .please help me giving information about email in forms.
thank you in advance
If you are using Forms on the web, one of the most easiest way to do it is to use the Java mailing support from sun. You can load it into the rdbms 8i or later and use it. There is a step by stepp detailed description on
www.oracle.com > publications > Oracle Magazine > Ask Tom. If you just type java mail it will be between the first ten I suppose, it's a popular topic.
HTH,
Tamas
Similar Messages
-
Sending external email from forms
Hello.
I want to send an email using a form and a report. The report is the attachment of the email. I run the report from form using this command
v_rep := RUN_REPORT_OBJECT(repid);
If i send the mail to an internal address, works properly. If i want to send the email to an external address i have this error:
FRM-41214
Error when running report ORA - 0000: normal, successful completion
I made a check with telnet on my computer and i managed to send an mail to an external address.
Anyone has any idea?
Thanks.I looked at the logs on the SMTP server, the extern mail doesn't even reach the SMTP server queue.
I enabled the trace for the report server and I get this error:
[2008/6/6 0:52:18:703] Exception 50152 (): Error while sending mail - Sending failed;
nested exception is:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [email protected]
oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
at oracle.reports.utility.Utility.newRWException(Utility.java:756)
at oracle.reports.server.MailService.send(MailService.java:492)
at oracle.reports.server.DesMail.sendFile(DesMail.java:186)
at oracle.reports.server.Destination.send(Destination.java:489)
at oracle.reports.server.JobObject.distribute(JobObject.java:1582)
at oracle.reports.server.JobManager.updateJobStatus(JobManager.java:2231)
at oracle.reports.server.EngineCommImpl.updateEngineJobStatus(EngineCommImpl.java:134)
at oracle.reports.server._EngineCommImplBase._invoke(_EngineCommImplBase.java:94)
at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
Thanks -
Sending email from forms using 'from'
I'm trying to send an email from forms. It goes well, but I like to use the 'from' field from Outlook. How can I use it in OLE? I have searched everywhere, but can't find it.
It seems to me it is something like the way you do with BCC and CC options, but I haven't found a way to do the same thing with the From field. Can anyone help?
Thanks,
Pauline KooyFabrizio,
Are you just sending the Line Feed character 'CHR(10)"? I typically send the Carrage Return character 'CHR(13)' as well. I'll create a variable called CRLF and assign the Carrage Return and Line Feed characters to this variable. Then reference the CRLF variable when I want to embed a new line.
For example:
DECLARE
crlf VARCHAR2(2) := chr(13)||chr(10);
v_msg_body VARCHAR2(2000);
BEGIN
v_msg_body := 'lots of text here'||crlf;
END;Hope this helps.
Craig... -
Can anybody send me a code how to send an email from forms
with attachement for multiple users
I am using oracle 8i and forms 6i
My mail application is Novel group wise
Thanks for your helpOracle Reports can be run directly to email.
Check out the DESTYPE parameter.
To send emails you can use a call to Java Mail using the Java importer. There is a sample form for this in the Oracle9i Forms demos. This should work in 6i also.
You might also be able to use email from the database with the UTL_SMTP package:
http://otn.oracle.com/sample_code/tech/pl_sql/htdocs/maildemo8i_sql.txt -
How can i send emails from forms
I need to be able to send emails from forms 6.(assuming the pc is running Outlook) What is the best way of doing this? Would OLE or DDE control of Outlook be the easiest method?
If anyone has done this please let me know.See:
iOS: Unable to send or receive email
I would Google for:
setup verizon email on phone
for the settings to use. -
Help: how to send emails from FORMS?
Are there simple steps to send emails from FORMS?
Thank you in advance.
JimmyI'm sure there are many ways to send emails from Forms. Personally I never had to do this, but I can imagine following ways.
a) use UTL_SMTP-Package to send the email via your database
b) use a Java-Call
Peter -
Sending external email from SAP with following requirements...
Hi All,
I need to send external emails from SAP by meeting following requirements.
1) With subject line more than 100 characters.
2) No attachments, only body which has specific format (blueprint/layout) and would be amended often, hence code shouldn't be touched during amendments.
3) Should be able to know the success/failure of mail sending at program level.Hi,
The code below demonstrates how to send an email to an external email address
*& Report ZSENDEMAIL *
*& Example of sending external email via SAPCONNECT *
REPORT zsendemail .
PARAMETERS: psubject(40) type c default 'Hello',
p_email(40) type c default '[email protected]' .
data: it_packing_list like sopcklsti1 occurs 0 with header line,
it_contents like solisti1 occurs 0 with header line,
it_receivers like somlreci1 occurs 0 with header line,
it_attachment like solisti1 occurs 0 with header line,
gd_cnt type i,
gd_sent_all(1) type c,
gd_doc_data like sodocchgi1,
gd_error type sy-subrc.
data: it_message type standard table of SOLISTI1 initial size 0
with header line.
*START-OF-SELECTION.
START-OF-SELECTION.
Perform populate_message_table.
*Send email message, although is not sent from SAP until mail send
*program has been executed(rsconn01)
PERFORM send_email_message.
*Instructs mail send program for SAPCONNECT to send email(rsconn01)
perform initiate_mail_execute_program.
*& Form POPULATE_MESSAGE_TABLE
Adds text to email text table
form populate_message_table.
Append 'Email line 1' to it_message.
Append 'Email line 2' to it_message.
Append 'Email line 3' to it_message.
Append 'Email line 4' to it_message.
endform. " POPULATE_MESSAGE_TABLE
*& Form SEND_EMAIL_MESSAGE
Send email message
form send_email_message.
Fill the document data.
gd_doc_data-doc_size = 1.
Populate the subject/generic message attributes
gd_doc_data-obj_langu = sy-langu.
gd_doc_data-obj_name = 'SAPRPT'.
gd_doc_data-obj_descr = psubject.
gd_doc_data-sensitivty = 'F'.
Describe the body of the message
clear it_packing_list.
refresh it_packing_list.
it_packing_list-transf_bin = space.
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
describe table it_message lines it_packing_list-body_num.
it_packing_list-doc_type = 'RAW'.
append it_packing_list.
Add the recipients email address
clear it_receivers.
refresh it_receivers.
it_receivers-receiver = p_email.
it_receivers-rec_type = 'U'.
it_receivers-com_type = 'INT'.
it_receivers-notif_del = 'X'.
it_receivers-notif_ndel = 'X'.
append it_receivers.
Call the FM to post the message to SAPMAIL
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = gd_doc_data
put_in_outbox = 'X'
importing
sent_to_all = gd_sent_all
tables
packing_list = it_packing_list
contents_txt = it_message
receivers = it_receivers
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
Store function module return code
gd_error = sy-subrc.
Get it_receivers return code
loop at it_receivers.
endloop.
endform. " SEND_EMAIL_MESSAGE
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
Instructs mail send program for SAPCONNECT to send email.
form initiate_mail_execute_program.
wait up to 2 seconds.
if gd_error eq 0.
submit rsconn01 with mode = 'INT'
with output = 'X'
and return.
endif.
endform. " INITIATE_MAIL_EXECUTE_PROGRAM
Hope this helps.
Reward if helpful.
Regards,
Sipra -
Does anyone know how to send an email from a form on the web?
Andreas,
If my understanding is correct, both UTL_MAIL and UTL_SMTP will basically create a string that will be placed
in <to>,<cc>,etc. MS Outlook as, I believe, any other email has a limitation on the number of characters that can be placed in any of the fields. MS Outlook is limited to about 2000 characters in <bcc> (and in <cc> and <to> fields. It means if one email consist of 30 char, I can't place more than 60 emails in <bcc>. I will have to place about 500-1000 emails. What do you think about another approach: make the form create an Excel file which contains all emails and call it 'bcc emails'. Than place 'bcc emails' line into <bcc> section of the email.
There probably is a mechanism built in Outlook email that will recognize a referral to 'bcc email' and take the corresponding emails from the excel file.
I know, you use different default email.
Will your email handle the situation?
What would you do if you had to send mass emails from Oracle where number of emails is huge?
Thanks. Lev. -
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... -
I want to send email from forms 45 .
how can I do it.
appreciate any help on this<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by jilla:
I want to send email from forms 45 .
how can I do it.
appreciate any help on this<HR></BLOCKQUOTE>
To send the mail from within a program unit/trigger, you will have to find out the mail batch command for the mail program that you are using eg. Microsoft Mail. If you are not sure, contact whoever created the mail program. Next, use TEXT_IO (built-in package) or some other method to write to the 'control' file that will be the email file you will send. Once you have done this you will need to invoke the HOST command, passing the mail batch command as a parameter to it.
It is possible to write to an error file to see why the email was not sent, if this so happens. Again this file (any name you like to give it) will be a parameter to the mail batch command.
To test if the mail was sent, write code like the following:
procedure send_mail is
l_file text_io.file_type;
l_buffer varchar2(2000);
l_mail_command varchar2(1000);
begin
/* Send mail */
host(l_mail_command);
/* Check if mail was sent */
l_file := text_io.fopen('c:\temp\mailerr.err','r');
text_io.get_line(l_file,l_buffer);
/* If there is data in this file display message to user, using an alert for example */
exception
when no_data_found
then
text_io.fclose(l_file);
end;
One other point. When you are creating your 'control' file, make sure you precede the email address of the recipient with 'SMTP:'.
I hope this helps. -
Sending the email from the sap gateway
hi,
Any body please help me how to send the email from the sap end. what is the funcion module used for that one what the parameters need to pass for that function module.Hi, check if below code is helpful
Variables for EMAIL functionality
DATA: maildata LIKE sodocchgi1.
DATA: mailpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
DATA: mailhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
DATA: mailbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: mailtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: mailrec LIKE somlrec90 OCCURS 0 WITH HEADER LINE.
DATA: solisti1 LIKE solisti1 OCCURS 0 WITH HEADER LINE.
PERFORM send_form_via_email.
FORM SEND_FORM_VIA_EMAIL *
FORM send_form_via_email.
CLEAR: maildata, mailtxt, mailbin, mailpack, mailhead, mailrec.
REFRESH: mailtxt, mailbin, mailpack, mailhead, mailrec.
Creation of the document to be sent File Name
maildata-obj_name = 'TEST'.
Mail Subject
maildata-obj_descr = 'Subject'.
Mail Contents
mailtxt-line = 'Here is your file'.
APPEND mailtxt.
Prepare Packing List
PERFORM prepare_packing_list.
Set recipient - email address here!!!
mailrec-receiver = '[email protected]'.
mailrec-rec_type = 'U'.
APPEND mailrec.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = maildata
put_in_outbox = 'X'
TABLES
packing_list = mailpack
object_header = mailhead
contents_bin = mailbin
contents_txt = mailtxt
receivers = mailrec
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
ENDFORM. "send_form_via_email
Form PREPARE_PACKING_LIST
FORM prepare_packing_list.
CLEAR: mailpack, mailbin, mailhead.
REFRESH: mailpack, mailbin, mailhead.
DESCRIBE TABLE mailtxt LINES tab_lines.
READ TABLE mailtxt INDEX tab_lines.
maildata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( mailtxt ).
Creation of the entry for the compressed document
CLEAR mailpack-transf_bin.
mailpack-head_start = 1.
mailpack-head_num = 0.
mailpack-body_start = 1.
mailpack-body_num = tab_lines.
mailpack-doc_type = 'RAW'.
APPEND mailpack.
mailhead = 'TEST.TXT'.
APPEND mailhead.
File 1
mailbin = 'This is file 1'.
APPEND mailbin.
DESCRIBE TABLE mailbin LINES tab_lines.
mailpack-transf_bin = 'X'.
mailpack-head_start = 1.
mailpack-head_num = 1.
mailpack-body_start = 1.
mailpack-body_num = tab_lines.
mailpack-doc_type = 'TXT'.
mailpack-obj_name = 'TEST1'.
mailpack-obj_descr = 'Subject'.
mailpack-doc_size = tab_lines * 255.
APPEND mailpack.
*File 2
mailbin = 'This is file 2'.
APPEND mailbin.
DATA: start TYPE i.
DATA: end TYPE i.
start = tab_lines + 1.
DESCRIBE TABLE mailbin LINES end.
mailpack-transf_bin = 'X'.
mailpack-head_start = 1.
mailpack-head_num = 1.
mailpack-body_start = start.
mailpack-body_num = end.
mailpack-doc_type = 'TXT'.
mailpack-obj_name = 'TEST2'.
mailpack-obj_descr = 'Subject'.
mailpack-doc_size = tab_lines * 255.
APPEND mailpack.
ENDFORM. "prepare_packing_list -
We are trying to send email from Forms (background not interactively). We use Eudora as a standard mail application. I am trying to use OLE Automation to send mails as I have to attach Word documents to the mail. There are sample code in Metalink for OLE automation of Outlook but not for Eudora. I'm not even sure if Eudora is an OLE server application. I would appreciate any kind of help and suggestions here.
Thx
--Shyam<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by jilla:
I want to send email from forms 45 .
how can I do it.
appreciate any help on this<HR></BLOCKQUOTE>
To send the mail from within a program unit/trigger, you will have to find out the mail batch command for the mail program that you are using eg. Microsoft Mail. If you are not sure, contact whoever created the mail program. Next, use TEXT_IO (built-in package) or some other method to write to the 'control' file that will be the email file you will send. Once you have done this you will need to invoke the HOST command, passing the mail batch command as a parameter to it.
It is possible to write to an error file to see why the email was not sent, if this so happens. Again this file (any name you like to give it) will be a parameter to the mail batch command.
To test if the mail was sent, write code like the following:
procedure send_mail is
l_file text_io.file_type;
l_buffer varchar2(2000);
l_mail_command varchar2(1000);
begin
/* Send mail */
host(l_mail_command);
/* Check if mail was sent */
l_file := text_io.fopen('c:\temp\mailerr.err','r');
text_io.get_line(l_file,l_buffer);
/* If there is data in this file display message to user, using an alert for example */
exception
when no_data_found
then
text_io.fclose(l_file);
end;
One other point. When you are creating your 'control' file, make sure you precede the email address of the recipient with 'SMTP:'.
I hope this helps. -
Cannot send an email from my alias Mobile Me account from the iPhone.
I have a Mobile Me email account which works perfectly on my Mac and iPhone. I created a an Alias Mobile Me Account on the web.
I am able to create a new email from the alias account on the Mac.
The iPhone will not recognize the alias account, I cannot add it or sync the account.
I cannot send an email from my alias Mobile Me account from the iPhone.To all frustrated MobileMe alias owners who want to send email from iPhone - please go to the feedback area of the apple.com and leave messages regarding this issue. I had a lengthy conversation with a tech support guy who agreed that this is a needed fix - he said to initiate a grass roots effort - and that by all of us leaving messages it will eventually get attention and fixed. Why would Apple give us the ability to create alias's, use them on mobileme website, on our mac mail programs, but NOT the iPhone, which is the MOBILE device. Silly. Please protest!! Thanks.
-
I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great!
The fact that you can receive means you have a valid e mail address, and have established the connection to the incoming server, so all of that works. Since the send does not work, that means your outgoing server is rejecting whatever settings you used formthe outgoing set up. Try them again.
Google your particular isp, and ipad and many times you will find the exact settings needed for your isp. Or tell us here, and soneone else may be on the same isp. Some mail services need you to change a port, or have a unique name for the outgoing server.
Kep trying. -
When sending email from the Mail App or through other Apps on my iPad, my default From: address will change when I enter a To: address. This sometimes leads me to send the email from the wrong outgoing email account. It is frustrating and poor design, especially since I had already checked the From: address.
iPad 4 running iOS 8.1.33rd party email addresses have to be deleted on every synmced mac product, although I have 1and1.co.uk and my imac updatetes the mails in that account from mac mail.
Yahoo etc is a 2 step deleting process but good to get your emails pushed when on the go.
LJ
http://www.facebook.com/The.Cowboy.Party
Maybe you are looking for
-
How to read the data of a file using upload option....
Hi Frndz.. As per my requirment , i need to provide a upload UI to the user , so he can select file to be upload whenever user select the file n clicks on upload button i need to read the data of that fiel that user selects. I have a solutions for th
-
PDF file showing Microsoft Word icon in library
Hello all, I've come across a weird issue in a Sharepoint 2010 library. We have a library that contains both WORD documents and PDF files. We have a custom functionality in our implementation that converts the WORD documents to PDF. For one specific
-
I'm trying to download sheet music and need to run sibelius scorch add-on in 32 bit model. I have a mac running lion and the latest safari. I have downloaded FireFox 6 and run it in 32 bit but still I can't see the music score to print. Can anyone he
-
Deadlock - can you make both transactions rollback?
My understanding of Oracle (11.2.0.3) is that if the engine detects a deadlock, it picks one transaction to rollback and one to succeed. Is it possible to configure a system or session setting that would instruct the engine to roll back both transact
-
I have created an online interactive form and added it to my web Dynpro ABAP application. I have created a context attribute called PDFSOURCE of type xstring which I did bind to the PDFSOURCE property of the Interactive Form. I am able to change edi