locked
Outgoing SMTP email fails with System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed. RRS feed

  • Question

  • I'm trying to configure the email router on an IFD CRM 2011 to send out emails using a Gmail account. I've used a number of different permutations  for the Outgoing profile connection settings. They all return 'outgoing status: succeeded'   in the  router wizard access test.  However they all fail eventually with the following :

    #61042 - An error occurred while processing the outgoing e-mail message with subject "email subject" for SMTP: https://org.domainname.net:444/org for delivery through 173.194.79.108. System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
       at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
       at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
       at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
       at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint)
       at System.Net.Mail.SmtpClient.Send(MailMessage message)
       --- End of inner exception stack trace ---
       at System.Net.Mail.SmtpClient.Send(MailMessage message)
       at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.Run()

    The crm server where the router is installed has rollups 6 and 11 installed.  Anybody had success with this configuration who can point me in the right direction? 


    regards Alan Ward


    • Edited by Alan Ward Monday, February 18, 2013 1:00 AM
    Monday, February 18, 2013 12:37 AM

Answers

  • What port number are you using for the Outgoing email profile? You can find this by looking on the advanced Tab. 

    You should be using port 587,I believe you will also want to have the SSL option checked.

    I think there are also some settings in the Gmail account that will need to be changed to allow SMTP emails to be sent from third party connectors but I am not sure if this is needed anymore.

    the URL you will want to use is SMTP.GMAIL.COM

     

    http://support.google.com/mail/bin/answer.py?hl=en&answer=13287 

    http://lifehacker.com/111166/how-to-use-gmail-as-your-smtp-server



    • Edited by ChrisDodgson1 Tuesday, February 19, 2013 3:13 PM
    • Marked as answer by Alan Ward Wednesday, February 20, 2013 12:26 AM
    Tuesday, February 19, 2013 3:12 PM

All replies

  • What port number are you using for the Outgoing email profile? You can find this by looking on the advanced Tab. 

    You should be using port 587,I believe you will also want to have the SSL option checked.

    I think there are also some settings in the Gmail account that will need to be changed to allow SMTP emails to be sent from third party connectors but I am not sure if this is needed anymore.

    the URL you will want to use is SMTP.GMAIL.COM

     

    http://support.google.com/mail/bin/answer.py?hl=en&answer=13287 

    http://lifehacker.com/111166/how-to-use-gmail-as-your-smtp-server



    • Edited by ChrisDodgson1 Tuesday, February 19, 2013 3:13 PM
    • Marked as answer by Alan Ward Wednesday, February 20, 2013 12:26 AM
    Tuesday, February 19, 2013 3:12 PM
  • Thanks for your reply . it worked  !!!  Some of my Gmail settings were incorrect. Yours worked.  Also applied the registry settings suggested by David Jennaway in the following blog : http://mscrmuk.blogspot.com.au/2012/04/crm-email-router-errors-with-adfs.html    


    regards Alan Ward

    Wednesday, February 20, 2013 12:26 AM