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

Last updated on FEBRUARY 19, 2016

Applies to:

Oracle Reports Developer - Version 9.0.2.0 and later
Information in this document applies to any platform.
*** Checked for relevance on 5-Feb-2016 **

Goal



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.

Reference

http://docs.oracle.com/cd/E24269_01/doc.11120/e24479/pbr_conf002.htm#sthref112

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

Solution

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