How to send emails from of pdf's generated by oracle reports
I have several pdf documents , I want to email those pdf's . Please let me know how to send emails from oracle reports .
Thanks,
Previn
I have integrated Oracle Reports with Oracle Portal and used the scheduling feature via portlets. We have reports that run every monday morning for management. For more info go to:
http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html
OR
I think if you set destype=mail, desformat=PDF, and desname=[email protected] that should also do the trick.
Just be sure that you have put your mail server's IP address in the rep_<machine_name>.conf file located in your <oracle_home>/reports/conf directory. If this is not set up, the mail feature won't work.
Martin
Similar Messages
-
How to send emails from HANA SQL Console
Hi,
Please guide how to send mail from HANA Studio SQL Console.
Is there any standard procedure in Hana Studio to send Mail( e.g. in MS SQL "sp_send_dbmail" Procedure)Hi Preethi,
Please go through the attached link:
How to send emails from HANA
Regards,
Krishna -
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; -
How to sending email from Oracle 6i(Forms)
How can I send email from Oracle Forms(6i).
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; -
How to send email from OSB with Mail server that requires SSL or STARTTLS
Hi everyone.
My leader ask me configuration on OSB to support send email to my company mail server (using https chanel) and customer email (some of them is gmail that require STARTTLS or SSL).
I've configured OSB as tutorial in that link: http://blogs.oracle.com/christomkins/entry/sending_an_email_from_oracle_s
But OSB cannot send email from mail account that configured because it cannot login to mail server. I think the reason is secure authentication with SSL or TLS.
There some problems that similar to mine in this forum but has nobody solved it yet.
Can you tell me the solution you know? Any suggestion is appreciated.
Regards
Cuong PhamI know I'll offer you just a workaround and not a real solution, but you can try to start your own (intermediate) SMTP server to communicate with OSB (without SSL). Then you can just relay all the messages to your "real" SMTP server which requires SSL. If you start your intermediate SMTP server on the OSB host (localhost), then this layout could be acceptable even from security point of view.
-
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 -
I have a report that get customers, I have to call another report to print a pdf letter to send to that customer. In the master report I have the code in the Function AfterReport:
srw.run_report('report=XXFACVEN.rdf batch=yes desformat=pdf
desname=[email protected] destype=mail
P_SET_OF_BOOKS_ID=' || '' || :P_SET_OF_BOOKS_ID || '' || ' DIAS_DESDE_HOY=' || '' || :DIAS_DESDE_HOY || '' || ' P_CLIENTE=' || '' || :P_CLIENTE || '');
The master report execute ok and the report XXFACVEN is also executed. I get an email like this:
%PDF-1.1
1 0 obj
<<
/Creator (Developer 2000)
/CreatorDate (Mon Feb 09 11:07:14 AM 2009)
/Author (Oracle Reports)
/Producer (Oracle PDF driver)
/Title (srw00932622.pdf)
>>
endobj
5 0 obj
<</Length 6 0 R>>
stream
BT
36.00 782.87 TD
If I save this text, I think is EPS, in an editor and save the file like name.pdf and I double click to the new file I get the pdf file.
Why I get the code (%PDF-1.1 1 0 obj << .....) and I don't get the pdf file.
I am using Report Builder 6.0.8.26.0. I run the report like a request from the EBS.
Thank you.I have a report that get customers, I have to call another report to print a pdf letter to send to that customer. In the master report I have the code in the Function AfterReport:
srw.run_report('report=XXFACVEN.rdf batch=yes desformat=pdf
[email protected] destype=mail
P_SET_OF_BOOKS_ID=' || '' || :P_SET_OF_BOOKS_ID || '' || ' DIAS_DESDE_HOY=' || '' || :DIAS_DESDE_HOY || '' || ' P_CLIENTE=' || '' || :P_CLIENTE || '');
The master report execute ok and the report XXFACVEN is also executed. I get an email like this:
%PDF-1.1
1 0 obj
<<
/Creator (Developer 2000)
/CreatorDate (Mon Feb 09 11:07:14 AM 2009)
/Author (Oracle Reports)
/Producer (Oracle PDF driver)
/Title (srw00932622.pdf)
>>
endobj
5 0 obj
<</Length 6 0 R>>
stream
BT
36.00 782.87 TD
If I save this text, I think is EPS, in an editor and save the file like name.pdf and I double click to the new file I get the pdf file.
Why I get the code (%PDF-1.1 1 0 obj << .....) and I don't get the pdf file.
I am using Report Builder 6.0.8.26.0. I run the report like a request from the EBS.
Thank you. -
TS3899 How to send emails from my iPad whilst in France
Please can anyone tell me how I can receive and send emails whilst in France from my ipad, and if so will it cost me more?
Same way as in the US. As long as you connect via wifi, there's no cost.
Cheers, Tom -
How to send emails from server?
I have a form in which there is a field for the user to enter their email id.I want to send email to tht id from the server automatically.how to do tht using JSP.can any one help me in doing tht
http://java.sun.com/products/javamail/
Look at the resources section for list of articles and other info. -
OBIEE 11g: How to send email from Analysis (via Action Framework)
Hi,
I have installed OBIEE 11g SampleAppLite in my POC box.
One of the features I want to have is to allow users to send their feedback (email) about a report to the report owner. Can this be done without launching Outlook? I tried to Invoke a Browser Script and found that I can display a form showing Recipient, Subject and Message text fields, but I do not know how to send the email.
Thanks!Hi Devarasu,
Thanks for your reply. The link you gave is for sending iBots. But if I do this, users will not be able to send their feedback / comment. -
Everyday, I get atleast 8 emails from people I don't know. Is there anyway I can mark the email IDs of these senders and program the Mail app to send incoming emails from these IDs to the junk/trash folder directly, without letting these emails enter my inbox?
Thank you (:Hello Josh! Did you ever solve your problem?
I am experiencing exactly the same thing as you, and I am not sure of what is causing it!
Thanks in advance for any feedback you may have! -
How we send email from pl/sql
i want 2 send mail from pl/sql??
plz tell me bout d coding related to this.
i really appreciated ur help.Try the pl/sql code below.
create or replace PROCEDURE send_test_message
IS
mailhost VARCHAR2(64) := '191.168.251.207'; -- ip address of the mail server.
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, 'Your leave is Cancelled due to xyz...reason ' || 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);
EXCEPTION
WHEN OTHERS THEN
-- Insert error-handling code here
NULL;
END; -
How can Send Email From JSP to all Mail server.it gives error
I try this code in netbean 5.But it will give the Error.
The code:
<%@page import="java.util.*"%>
<%@page import="javax.mail.*"%>
<%@page import="javax.mail.internet.*"%>
<%
Properties props = System.getProperties();
props.put("mail.smtp.host", "smtp.gmail.com" );
props.put("mail.smtp.port", "465" );
Session s = Session.getInstance(props, null);
MimeMessage message = new MimeMessage(s);
String From = request.getParameter("sender");
InternetAddress from = new InternetAddress(From);
message.setFrom(from);
String Tos = request.getParameter("reciever");
InternetAddress to = new InternetAddress(Tos);
message.addRecipient(Message.RecipientType.TO, to);
String sub =request.getParameter("subject");
message.setSubject(sub);
String mgs =request.getParameter("message");
message.setText(mgs);
Transport.send(message);
%>
<html>
<p align="center">
A Message has been sent. <br>
Check your inbox.
</p>
<p align="center">
Click here to send another!
</p>
</html>
Error is :
javax.servlet.ServletException: Could not connect to SMTP host: smtp.gmail.com, port: 465
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.MailBeema_jsp._jspService(MailBeema_jsp.java:88)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
root cause
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
nested exception is:
java.net.ConnectException: Connection timed out: connect
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
javax.mail.Service.connect(Service.java:275)
javax.mail.Service.connect(Service.java:156)
javax.mail.Service.connect(Service.java:105)
javax.mail.Transport.send0(Transport.java:168)
javax.mail.Transport.send(Transport.java:98)
org.apache.jsp.MailBeema_jsp._jspService(MailBeema_jsp.java:68)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
nested exception is:
java.net.ConnectException: Connection timed out: connectFairly self-explaining, isn't it? That host cannot be connected.
Either check the correctness of the hostname/port, or check your network settings (firewall, router, etc). -
How to Get XML from the PDF form generated using Designer that is stored in LC
We have a Requirement of Generating reports on what a PDF form is comprised of? It is easy for us to scan / parse the XML format of the PDF form and get all the relavent Info we need. We are able to see the XML format of the PDF form when we open up the Form in Designer.
But we are trying to run this report in a Batch Mode for many PDF files. I need to know how to get a XML format of the PDF file that is stored in LC that was developed using Designer. Once we are able to get the XML of the PDF form it is just a scan / parse to get the relavent data.
Can some one tell me how to get the XML format of a PDF file stored in the LC?If I place the PDF form on the LC server - Can you let me know of the tools you are referring to get XML design from the PDF form?
Is it through a Process Orchestration I need to run the PDF through to get a XML design out of it?
I am fine in storing the PDF in the LC server? How will I get the XML design (XML) from this PDF on the server? -
How to send email from iClound account on iPhone?
My iClound accout @mac.com or @me.com can receive replies from this forum on my iPhone, but I can not reply or send out any email.
How to do it?Hi,
As what Willard says, please change the SMTP port to 587 and use TLS for encrypted connection. We can get the receive connector for POP and IMAP.
Client Servername – This Receive connector accepts SMTP connections from all non-MAPI clients, such as POP and IMAP.
The “Client ” Receive Connector is bound to TCP port 587. It is also configured by default to respond to new connections with the FQDN of the server itself. We can run the following command to get it:
Get-ReceiveConnector
Regards,
Winnie Liang
TechNet Community Support
Maybe you are looking for
-
Problems with query on a non-database field
Hi, Hopefully I am in the correct section... I have some problems. I wanna query a non-database field but it does not work for one of them. I have tried the following... declare vsNewDefaultWhere varchar2(4000); vbFirstWhere boolean; cursor curArea i
-
How to get byte array from jpg in resource for Image XObject?
Hi, Does anyone know how to get an array of bytes from a jpg from resource without an external library except MFC? The array of bytes is needed to create an Image XObject so it can be included in an appearance for an annotation.
-
The HP dashboard for controlling my Officejet 8600 Pro e-All-In-One Printer n-911a disappeared from my Desktop. So I have no way to control my printer remotely. How do I recover it? I went to HP's site I use one of the onsite tools to scan my laptop
-
Purple background in "story" layout mode
Hi everyone, hoping someone can help.... When I view my InCopy file in "story" or "galley" mode, there's a bright purple background behind all the copy that makes it rather distracting to read. I've also seen this be a green color too. Can someone po
-
Roaming Profiles Issues??
I have 12 users with win 7 pro machines login into the sbs2011 essentials server with roaming profiles it takes along time to login and log off. I want to turn off the roming profiles and turn on folder redirection. Is this best practice to do a way