This error message tells that localhost, the same server where you have your Oracle database running, does not have an SMTP server up and running.
Means this error occur when SMTP SERVER IS NOT REACHABLE so it is not oracle error.
when UTL_SMTP package not able to connect SMTP server then above error will occur.
So first need to check without involving oracle we are able to connect smtp server through TELNET command
for eg:
C:\>telnet SMTP_SERVERNAME port (default port 25)
A Qestion:- do we need smtp and oracle on the same server ?
===========================================================
Answer:-
===============
No, its no need to, smtp and oracle on the same server.
You first have to check whether you are able to contact the email server without involving ORACLE.
you need just connection with SMTP server
C:\>telnet SMTP_server port
Connecting To SMTP_server Could not open connection to the host, on port 23: Connect failed
You will see the above error it means system is not able to connect smtp server that is why the above error occur.
after successfully connect to SMTP server , then try via oracle database.
Halim, a Georgia Tech graduate Senior Database Engineer/Data Architect based in Atlanta, USA, is an Oracle OCP DBA and Developer, Certified Cloud Architect Professional, and OCI Autonomous Database Specialist. With extensive expertise in database design, configuration, tuning, capacity planning, RAC, DG, scripting, Python, APEX, and PL/SQL, he combines technical mastery with a passion for innovation. Notably, Halim secured 16th place worldwide in PL/SQL Challenge Cup Playoff on the year 2010.
Tuesday, April 26, 2011
Subscribe to:
Post Comments (Atom)
My Blog List
-
-
-
Coalesce SQ bug5 weeks ago
-
UKOUG Discover 20244 months ago
-
-
-
-
-
-
-
-
Moving Sideways8 years ago
-
-
Upcoming Events...11 years ago
-
1 comment:
I was able to connect to smtp server (smtp.gmail.com). But what should be done in the database to successfully send email?
Post a Comment