Report Manager - Error emailing scheduled report - Unable to connect to the remote server

Last Modified

Mon Oct 30 18:45 GMT 2017

Description

The following error may be received when trying to schedule or send a scheduled report in Report Manager.

Receive following error in the log file when it tries to email the report: System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: ---Unable to connect to the remote server > System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:25 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at com.nable.services.Usage.SendEmail()

Environment

  • All Versions of Report Manager

Solution

The error Above is telling us Report Manager cannot connect to the mail server on port 25 or the mail server IP Address is incorrect.

To add a valid SMTP server IP address for Report Manager to send scheduled reports to please follow the steps below.
  1. Open Microsoft reporting services configuration manager.
  2. In the Right hand column select e-mail settings.
  3. Enter a Valid SMTP Mail server address as well as a Sender email address.
  4. Please note that Scheduled report cannot be sent to a SMTP server that requires authentication. The mail server must be able to accept e-mails from the Report Manager server without Authentication required.
If the mail server IP is a valid IP for your mail server Please verify that port 25 is open between the Report Manager server and your mail server. This can be done using a telnet command.
Telnet <mail server ip> 25