Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-29279: Permanenter SMTP-Fehler: 530 Authentication required while trying to send email

siegwin.portJun 9 2018 — edited Jun 9 2018

Hi,

I try to send an email from SQL developer  with this this anonymous procedure:

DECLARE

  c UTL_SMTP.CONNECTION;

  PROCEDURE send_header(name IN VARCHAR2, header IN VARCHAR2) AS

  BEGIN

    UTL_SMTP.WRITE_DATA(c, name || ': ' || header || UTL_TCP.CRLF);

  END;

BEGIN

  c := UTL_SMTP.OPEN_CONNECTION('smtp.1und1.de');   -- my 1und1 Ausgangsserver

  UTL_SMTP.HELO(c, 'foo.com');

  UTL_SMTP.MAIL(c, 'sender@foo.com');

  UTL_SMTP.RCPT(c, 'recipient@foo.com');

  UTL_SMTP.OPEN_DATA(c);

  send_header('From',    '"Sender" info@spub.de');

  send_header('To',      '"Recipient" siegwin.port@spub.de');

  send_header('Subject', 'Hello');

  UTL_SMTP.WRITE_DATA(c, UTL_TCP.CRLF || 'Hello, world!');

  UTL_SMTP.CLOSE_DATA(c);

  UTL_SMTP.QUIT(c);

EXCEPTION

  WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN

    BEGIN

      UTL_SMTP.QUIT(c);

    EXCEPTION

      WHEN UTL_SMTP.TRANSIENT_ERROR OR UTL_SMTP.PERMANENT_ERROR THEN

        NULL; -- When the SMTP server is down or unavailable, we don't have

              -- a connection to the server. The QUIT call will raise an

              -- exception that we can ignore.

    END;

    raise_application_error(-20000,

      'Failed to send mail due to the following error: ' || sqlerrm);

END;

Can anyone help me for what authentication is needed and how to make it.

Regards

Siegwin

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 7 2018
Added on Jun 9 2018
2 comments
726 views