My Oracle Support Banner

REP-50152: Error while sending mail - How to Check if SMTP Needs Network Authentication? (Doc ID 252176.1)

Last updated on SEPTEMBER 17, 2020

Applies to:

Oracle Reports Developer - Version and later
Information in this document applies to any platform.


There could be some instances, where in SMTP servers are configured in such a way that it needs Network Authentication while sending mail.

By default, Reports does not need the network Authentication. Reports generate the below error if Reports are configured in the network that needs Network authentication for SMTP server.

REP-50152: Error while sending mail - Sending failed;
nested exception is: Javax.mail.MessagingException: 454 5.7.3 Client was not authenticated.

More often developers are not aware whether the SMTP has been configured or not for network authentication?

In this scenario the code from this document comes as handy for testing.

Important Information

Starting with Reports 11g version the PluginParameter "mailServer" allows to to pass SMTP authentication information to the SMTP server in the reports server configuration file.


The java code in this document can be very handy to troubleshoot mailServer issues with Reports version 11g and 12c.


To view full details, 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 a vibrant support community of peers and Oracle experts.