Sending email from Oracle through Lotus Domino Server
Hi,
I would like to know whether it is possible to send an email from Oracle through a Lotus Domino Server(acting as mail server). If yes, please provide me with the details.
Thanks in advance
Have a look at the database UTL_SMTP package
Similar Messages
-
Send email from OWB with authenticated SMTP server (AUTH_LOGIN)
Hi all,
I want to send email from Oracle Warehouse Builder 11.2.0.2 using a SMTP server with basic authentication (AUTH_LOGIN).
I've created an ACL for OWBSYS user according to note ID 1229769.1 in support.oracle.com.
But, I need to configure again the ACL to connect to the SMTP server using user and password.
I read the article in metalink, *How to Send an Email Using SMTP over an SSL Connection [ID 1323140.1]*+
but I don't know how can I configure again the ACL for use in OWB.
How OWB is able to authenticate with the SMTP server?
Thanks!
Maximiliano.Duplicate -
How to send email from OSB with Mail server that requires SSL or STARTTLS
Regards,
Anuj -
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 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; -
ACL error when sending email from Oracle 11g
Hi,
It returned something like "error...ACL security" when I tried to send email from Oracle 11g. Is there any security thing that I need to release in Oracle 11g? I used to send emails from Oracle 10g and didn't find any problem.
Thanks.
AndyIn Database 11g Oracle introduced Network Access Control Lists (ACLs) to protect the database from users using the many internet-capable packages such as UTL_INADDR, UTL_HTTP, UTL_TCP, etc.
Read all about it in the docs and look at the code demos here:
http://www.morganslibrary.org/library.html
under DBMS_NETWORK_ACL_... -
Dear member & developers
I want to send e mail from oracle application. If anybody knows, how to do this. please write or send a sample application or forms or database sql. I don't restricted to any application version like 10g or 11g same as database...
I seriously need it.
Thanks in Advanced.As Francois indicated - there are multiple examples around the internet and in the forums. Any email solution you choose is going to require that you have access to a valid email server (SMTP, POP3, etc). Also, the solution is dependent on "Where" you want to send the email from. I prefer a database solution because this makes it available to your entire database application, but you can use a Java email method (using Forms PJC or Java Bean) or you can OLE link to Microsoft Outlook.
Take a look at Send Email from the Database. I wrote this package based on the DEMO_MAIL package provided by Oracle (via OTN) and stream line things a bit. There is an example of how to use the package in the article.
Take a look at Send email with HTML body and local file attachements article on Franscois's web site for an example of sending email from an Oracle Form using Java.
If you need to use Outlook - search the forum. I don't consider this to be a reasonable method so I don't use it or recommend it. I'm sure it works fine for others, I just think being dependent on a application installed on the client is not a solid solution. That's just my opinion. ;-)
I search through out the net. Didn't get any tutorial video or any working materiel. I disagree with this statement - I did a quick Google search and found many examples (no videos) and demo's.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Send email from j2me through servlet
Hi people,
i hope you can help me because i am new in network programming.
I am trying to send email from j2me to googlemail account I have 2 classes EmailMidlet (which has been tested with wireless Toolkit 2.5.2 and it works) and the second class is the servlet-class named EmailServlet:
when i call the EmailServlet, i get on the console:
Server: 220 mx.google.com ESMTP g28sm19313024fkg.21
Server: 250 mx.google.com at your service
this is the code of my EmailServlet
import java.io.*;
import java.net.Socket;
import java.net.UnknownHostException;
import java.text.*;
import java.util.Date;
import javax.servlet.*;
import javax.servlet.http.*;
public class EmailServlet extends HttpServlet {
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
System.out.println("____emailservlet.doPost");
response.setContentType("text/plain");
PrintWriter out = response.getWriter();
System.out.println("______________________________");
out.println();
String to = request.getParameter("to");
System.out.println("____________________________to" + to);
String subject = request.getParameter("subject");
String msg = request.getParameter("msg");
// construct an instance of EmailSender
System.out.println("servlet_to" + to);
send("[email protected]", to, subject, msg);
out.println("mail sent....");
public void send(String from, String to, String subject, String msg) {
Socket smtpSocket = null;
DataOutputStream os = null;
DataInputStream is = null;
try {
smtpSocket = new Socket("smtp.googlemail.com", 25);
os = new DataOutputStream(smtpSocket.getOutputStream());
is = new DataInputStream(smtpSocket.getInputStream());
} catch (UnknownHostException e) {
System.err.println("Don't know about host: hostname");
} catch (IOException e) {
System.err
.println("Couldn't get I/O for the connection to: hostname");
if (smtpSocket != null && os != null && is != null) {
try {
os.writeBytes("HELO there" + "\r\n");
os.writeBytes("MAIL FROM: " + from + "\r\n");
os.writeBytes("RCPT TO: " + to + "\r\n");
os.writeBytes("DATA\r\n");
os.writeBytes("Date: " + new Date() + "\r\n"); // stamp the msg
// with date
os.writeBytes("From: " + from + "\r\n");
os.writeBytes("To: " + to + "\r\n");
os.writeBytes("Subject: " + subject + "\r\n");
os.writeBytes(msg + "\r\n"); // message body
os.writeBytes(".\r\n");
os.writeBytes("QUIT\r\n");
// debugging
String responseLine;
while ((responseLine = is.readLine()) != null) {
System.out.println("Server: " + responseLine);
if (responseLine.indexOf("delivery") != -1) {
break;
os.close();
is.close();
smtpSocket.close();
} catch (UnknownHostException e) {
System.err.println("Trying to connect to unknown host: " + e);
} catch (IOException e) {
System.err.println("IOException: " + e);
} 1.when i print "to" in EmailServlet also:
String to = request.getParameter("to");
System.out.println("____________________________to" + to); it show null on the console :confused:
2. ist this right in case of googlemail.com?
smtpSocket = new Socket("smtp.googlemail.com", 25); I would be very grateful if somebody can help me.jackofall
Please don't post in old threads that are long dead. When you have a question, please start a topic of your own. Feel free to provide a link to an old thread if relevant.
I'm locking this thread now.
db -
Send email from oracle xe table
Hi, just a question, does any one know if oracle has any built in email functionality ?
I have an oracle xe table with email addresses in it, I want to send emails using the addresses.
Yes I know I can connect to it with many things and send emails, but I was wondering if there is any way to send directly from oracle ?Jay wrote:
Hi, just a question, does any one know if oracle has any built in email functionality ?
I have an oracle xe table with email addresses in it, I want to send emails using the addresses.
Yes I know I can connect to it with many things and send emails, but I was wondering if there is any way to send directly from oracle ?They do, it's outlined in the documentation (i assume you're using XE).
http://download.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/wrkspc.htm#HTMDB08010 -
Hi all
I have a requirement to send emails to managers internal to the company from oracle whenever the orders placed by customers are not acknowleded in certian time like within 6 hrs or so.I could figure out the logic but dont know how to send an email from oracle.
my logic:
creating a job which will be scheduled to run every 4 or 5 hrs.this job runs a stored procedure which does all the logic and sends an email.
any suggesions or source is greatly appreciated.
thanks and regards in advance
yugandharHi,
for scheduling a job use dbms_job package and to send emails use utl_smtp package is available oracle 8.1.6 and above hope this helps you
prem -
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... -
Monitor sending emails from Oracle level
Want to monitor sending of emails from scot at the oracle level. I know tables SOST is used, not sure what fields could be monitored to determine if emails are just sitting in queue.
Hi,
Check out http://www.oracle.com/pls/xe102/search?remark=advanced_search&word=email&format=ranked&format=drilldown&book=&preference=
(and bookmark http://www.oracle.com/pls/xe102/homepage ;) ) -
Cannot send emails from my ipad air - recipient server rejected
I am using plus net and have entered all the settings into the Ipad using the IMAP settings detailed by Plus Net. I receive emails but cannot send as the message 'the recipients server rejected the message.........' comes up. I have tried pop settings as well to the same effect.
iOS: Unable to send or receive email
http://support.apple.com/kb/TS3899
Can’t Send Emails on iPad – Troubleshooting Steps
http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
iPad Mail
http://www.apple.com/support/ipad/mail/
Cheers, Tom -
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). -
Sending Email from Oracle BPM 11.1.1.4
Hi,
From my process i want to send an email to non- workspace user. How to do that.
Am aware of the 11.1.1.6 Notifications, but my client requires 11.1.1.4 version
Its urgent.
Thanks,
PriyaWe used java Mail API to send emails in 11.1.1.5 + Feature Pack too.
Though as you said PS5 has this new feature - http://technology.amis.nl/2012/05/18/proces-email-with-the-new-ums-adapter-of-soa-suite-ps5/ -
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
Maybe you are looking for
-
How to display and edit the clob datatype column from Data base
Hi , I have a requiremsnt as below 1) One Table having some columns with CLOB data type along with varchar columns 2) need to display the data from DB in search screen and need to be edited clob column in edit screen I created EO and VO with that Tab
-
When will EK02 appear in the Sales Order?? For different planning strategy?
Hi Experts, In our SAP system ,when you create a sales order with a material which planning strategy is 50 Planning without final assembly (MTO) , in the item detail screen , on the "Conditions" TAB, we will see condition type EK02 and its value. But
-
I am using my time machine for the first time. I have bought an external backup mobile drive 1TB. I have turned time machine on and it has save only 149gb of 250gb. How do I get it to save 250gb? How do I see what it has actually saved and once store
-
Where I can get the latest Sun one Product information?
about version,document? Thank U
-
Question i backed up my iphone how do I open old texts and other info
Question I backed up my iphone on itunes. I see that it was backed up then restored it. How do I get the info i backed up?