How to Send an Email Using UTL_SMTP with Authenticated Mail Server.
(Doc ID 885522.1)
Last updated on FEBRUARY 28, 2023
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.
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.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document