Workflow Soluiton

 View Only
Expand all | Collapse all

Workflow Designer 7.5, Send Email (SMTP) Error

  • 1.  Workflow Designer 7.5, Send Email (SMTP) Error

    Posted Apr 22, 2014 07:06 PM

    I am getting the following error in my log viewer.  I have setup and configured a relay using Send email with SMTP in my workflow but the designer is still trying to use local host.  Has anyone seen this?

     

    Application Name : Test  Workflow
    Process ID : 3672
    Date :4/22/2014 5:38:32 PM
    Log Level :Error
    Log Category :LogicBase.ExecutionEngine
    Machine Name : MYSERVERNAME
    Message :
    resulting exception from execution
    System.Exception: exception component created:  ---> LogicBase.Framework.BusinessRuleException: The critical error failed execution on component Send Email : We are unable to send your email, please make sure your email credentials specified correctly.
    Mail server address: localhost:25
    Exception message: 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, Int32 timeout, 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, Int32 timeout)
       at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback)
       at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback)
       at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout)
       at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
       at System.Net.Mail.SmtpClient.Send(MailMessage message)Unable to connect to the remote server
    No connection could be made because the target machine actively refused it 127.0.0.1:25



  • 2.  RE: Workflow Designer 7.5, Send Email (SMTP) Error

    Posted Apr 22, 2014 09:39 PM
    Can you provide a screenshot of the component configuration? Workflow is convinced you have it set to localhost.


  • 3.  RE: Workflow Designer 7.5, Send Email (SMTP) Error

    Posted Apr 24, 2014 08:28 AM

    Concur with David Parks... or you are actually trying to use your machine to send email but don't have SMTP installed or configured properly (or don't have port 25 open, a personal firewall could be blocking it EVEN IF you have SMTP configured).

    SMTP should be able to be installed via Add/Remove Software (Windows components)



  • 4.  RE: Workflow Designer 7.5, Send Email (SMTP) Error

    Posted May 02, 2014 12:16 PM

    I created a simple send email workflow and when i entered in my SMTP settings everything works fine.  But when i run my workflow it is still trying to send an email using localhost:25.

     

    How do i force workflow to use SMTP settings?



  • 5.  RE: Workflow Designer 7.5, Send Email (SMTP) Error

    Broadcom Employee
    Posted May 02, 2014 12:22 PM

    Have you updated the e-mail settings inside Master Settings in the portal? By default the e-mail server settings will be set to localhost & port 25.



  • 6.  RE: Workflow Designer 7.5, Send Email (SMTP) Error

    Posted May 02, 2014 12:38 PM

    Yes I entered in my relay server and port.  The error is happening when I click submit from within the workflow, it has not gotten to any send email request that i entered.

     

    Also when i send a test email from the portal everything is fine.



  • 7.  RE: Workflow Designer 7.5, Send Email (SMTP) Error

    Posted May 02, 2014 01:02 PM

    Post a screenshot of the send email component. Lets see what you are working with.



  • 8.  RE: Workflow Designer 7.5, Send Email (SMTP) Error

    Posted May 02, 2014 01:15 PM

    2014-05-02_10-11-36.png

     

    I believe the error is occuring here.

     

    2014-05-02_10-12-09.png

     

     



  • 9.  RE: Workflow Designer 7.5, Send Email (SMTP) Error

    Broadcom Employee
    Posted May 02, 2014 01:23 PM

    The project won't produce an e-mail error until it reaches an actual Send e-mail component. You must have an e-mail component inside the start model of your Dialog workflow component. I would recommend doing a find on the send e-mail component and make sure you've properly configured each one.



  • 10.  RE: Workflow Designer 7.5, Send Email (SMTP) Error

    Posted Oct 17, 2014 08:49 AM

    Did you ever get this resolved?  I have the same issue.  I have everything configured to point to my mail server and the Send Email component configured with my SMTP server correctly (and it works in some workflows) but this one insists on trying to use 'localhost' to send with.



  • 11.  RE: Workflow Designer 7.5, Send Email (SMTP) Error

    Posted Oct 17, 2014 11:43 AM

    By any chance is the SMTP Server using a Project Property? If so, I'd check and verify it isn't localhost... if it isn't, check the properties.config file in the deployed directory and verify it's value there. (you can change it in the config, will not hurt anything)