Home » RDBMS Server » Server Utilities » How to Send email through oracle
How to Send email through oracle [message #71295] Thu, 10 October 2002 05:16 Go to next message
msh
Messages: 11
Registered: July 2002
Junior Member
Hi All,
I have run all the necessary scripts for this.But after running thsi procedure i am getting thsi error.

Declare
SendorAddress Varchar2(30) := 'munish_blr@hotmail.com';
ReceiverAddress varchar2(30) := 'munishmsh@rediffmail.com';
EmailServer varchar2(30) := 'hotmail.com';
Port number := 25;
conn UTL_SMTP.CONNECTION;
crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
mesg VARCHAR2( 4000 );
mesg_body varchar2(4000);
BEGIN
conn:= utl_smtp.open_connection( EmailServer, Port );
utl_smtp.helo( conn, EmailServer );
utl_smtp.mail( conn, SendorAddress);
utl_smtp.rcpt( conn, ReceiverAddress );
mesg:=
'Date: '||TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' )|| crlf ||
'From:'||SendorAddress|| crlf ||
'Subject: Mail Through ORACLE Database' || crlf ||
'To: '||ReceiverAddress || crlf ||
'' || crlf ||
' This is Mail from Oracle Database By Using UTL_SMTP Package'||crlf||'It is very easy
configure Tell me if you face any problems' ;
utl_smtp.data( conn, mesg );
utl_smtp.quit( conn );
END;
/

After running thsi pl/sql block 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 11

Would anyone plz let me knwo the cause of problem and also how to rectify it.Plz its urgent.

Thanks
./mk
Re: How to Send email through oracle [message #71297 is a reply to message #71295] Thu, 10 October 2002 06:21 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
there is issue with mailHOST.
and it seems u are trying to use hotmail.com as ur EMAILSERVER??
Re: How to Send email through oracle [message #72867 is a reply to message #71295] Mon, 24 November 2003 14:27 Go to previous messageGo to next message
Have you figured out this
Messages: 1
Registered: November 2003
Junior Member
Hello Mahesh,

I am getting the exact error that you are getting. I wonder if you have found out more information. Thanks!
Re: How to Send email through oracle [message #73147 is a reply to message #71297] Mon, 16 February 2004 17:34 Go to previous message
Lingaraju
Messages: 1
Registered: February 2004
Junior Member
This error is comming from your SMTP mail server and is being propogated into the UTL_SMTP package. Typically this error indicates that you are not using
the correct email server name in the UTL_SMTP.OPEN_CONNECTION() call
Check your SMTP connection

Check this link
http://www.experts-exchange.com/Databases/Oracle/Q_20798975.html
Previous Topic: my databse is full what to do now
Next Topic: ORA-2 5 2 2 6: Advanced queue related problem, urgent, pls help.
Goto Forum:
  


Current Time: Fri Nov 08 22:10:00 CST 2024