Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 24th, 2003, 03:14 PM
hurricane850 hurricane850 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: FLorida
Posts: 45 hurricane850 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to hurricane850 Send a message via Yahoo to hurricane850
send email through oracle

Hi All,

I am trying to run this pl/sql and I am getting an error and that I have no clue what to do next. I am trying to send email using pl/sql.
Do I need to install or configure other stuff to get this working?

I would really appreciate the suggestions!!

I put email in everyspot as a test.

DECLARE
v_connection UTL_SMTP.CONNECTION;
BEGIN
v_connection := UTL_SMTP.OPEN_CONNECTION('email',25);
UTL_SMTP.HELO(v_connection, 'email');
UTL_SMTP.MAIL(v_connection, 'email');
UTL_SMTP.RCPT(v_connection, 'email');
UTL_SMTP.DATA(v_connection, 'email');
UTL_SMTP.QUIT(v_connection);
END;

After running thsi pl/sql block in sqlplus i am getting this error.


ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at "SYS.UTL_SMTP", line 17
ORA-06512: at "SYS.UTL_SMTP", line 96
ORA-06512: at "SYS.UTL_SMTP", line 138
ORA-06512: at line 4

Last edited by hurricane850 : November 24th, 2003 at 03:17 PM.

Reply With Quote
  #2  
Old March 7th, 2005, 12:32 AM
lkrish lkrish is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 1 lkrish User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 31 sec
Reputation Power: 0
hi
try giving your server ip address in the following line
v_connection := UTL_SMTP.OPEN_CONNECTION('email',25);

eg:
v_connection := UTL_SMTP.OPEN_CONNECTIO('x.x.x.x',25);
it works
reg
krish




Quote:
Originally Posted by hurricane850
Hi All,

I am trying to run this pl/sql and I am getting an error and that I have no clue what to do next. I am trying to send email using pl/sql.
Do I need to install or configure other stuff to get this working?

I would really appreciate the suggestions!!

I put email in everyspot as a test.

DECLARE
v_connection UTL_SMTP.CONNECTION;
BEGIN
v_connection := UTL_SMTP.OPEN_CONNECTION('email',25);
UTL_SMTP.HELO(v_connection, 'email');
UTL_SMTP.MAIL(v_connection, 'email');
UTL_SMTP.RCPT(v_connection, 'email');
UTL_SMTP.DATA(v_connection, 'email');
UTL_SMTP.QUIT(v_connection);
END;

After running thsi pl/sql block in sqlplus i am getting this error.


ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at "SYS.UTL_SMTP", line 17
ORA-06512: at "SYS.UTL_SMTP", line 96
ORA-06512: at "SYS.UTL_SMTP", line 138
ORA-06512: at line 4

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > send email through oracle


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT