How to Send an Email Using UTL_SMTP with Authenticated Mail Server.
Last updated on JULY 26, 2017
Applies to:PL/SQL - Version 126.96.36.199 to 188.8.131.52 [Release 9.2 to 12.1]
Information in this document applies to any platform.
*** Checked for relevance on 26th Jul 2017 ***
The UTL_SMTP package is designed for sending electronic mail (E-Mail) over simple mail transfer protocol (SMTP) as specified by RFC821. Some mail servers require username and password to be supplied for authentication. If the username and password is not supplied when the SMTP server expects it, then call to the UTL_SMTP will fail with "ORA-29279: SMTP permanent error: 530 Authentication required".
The sample code below shows how to include the username/password for the mail server.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms