Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: UTL_SMTP : 421 Service not available ?
Hi,
I tried what you kindly suggested, but the return message is always the same
:
'service not available'.
I checked again the parameters of my mail account in Outlook express, I think if got the right parameters. here's what i tried, may be you'll see something wrong...
SQL> declare
2 mail_conn utl_smtp.connection; 3 return_message utl_smtp.reply;
PL/SQL procedure successfully completed.
Thanks.
Yann
Jan Schäfer a écrit dans le message <9ui62s$lv0$1_at_news.uni-leipzig.de>...
>> I tried to send a mail using our provider, it doesn't work, sending
>message
>> :
>>
>> ORA-20001: 421 Service not available
>> ORA-06512: at "SYS.UTL_SMTP", line 83
>> ORA-06512: at "SYS.UTL_SMTP", line 344
>
>Just try to get the messages from the mail server of your provider by
>calling the utl_smtp commands like this:
>
>declare
> mail_conn utl_smtp.connection;
> return_message utl_smtp.reply;
> .
> .
>
>begin
> return_message := utl_smtp.open_connection('mailhost', 25, mail_conn);
> message(return_message);
> return_message := utl_smtp.helo(mail_conn, 'mailhost');
> message(return_message);
> .
> .
>end;
>
>This will give you more information when and probably why it doesn't work.
>
>So long,
>
>Jan
>
>
Received on Wed Dec 05 2001 - 02:14:13 CST