Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Using dynamic SMTP port fails.
- This topic has 2 replies, 1 voice, and was last updated 9 years, 2 months ago by
community-content.
-
AuthorPosts
-
-
September 22, 2009 at 1:56 PM #23293
I started learning biztalk a week ago and until this moment was able to solve problems by myself but this one is driving me crazy for a second day already and no mater what I do I can’t move an inch forward to solving it.
I have a schema with a two ports. The second port is dynamic SMTP send port. I initialize it in message assignment and expression shapes before but it doesn’t seem to send any message. Event log just says:
A message sent to adapter “SMTP” on send port “Nexum.Labs.Orchestrations_1.0.0.0_Orchestrations.PurchaseOrchestration_SendNewOrderMessageToFreeAssistantPort_d0c0294e0bae7d49” with URI “mailto:[email protected]” is suspended.
Error details: The transport failed to connect to the server.
From this error it may seem that smtp host is not set or bad name is provided but I’m pretty sure it works as static port and I even wrote a test application which used SmtpClient class to send an email through that host an it worked just fine.
I’m using BizTalk 2009 on Windows 7.
My ochestration looks like this:
Receive port
[ Message assigment shape ] Construct shape
Expression shape
Dynamic send port
Message assigment shape has following expression:
ClientRequestAssignedToAssistantInstance = ClientRequestInstance;
//assistant = BusinessLogic.DbHelper.GetFreeAssistnant();
ClientRequestAssignedToAssistantInstance.ResponsibleAssistant.ID = “1”;
ClientRequestAssignedToAssistantInstance.ResponsibleAssistant.FirstName = “1”;
ClientRequestAssignedToAssistantInstance.ResponsibleAssistant.LastName = “1”;
ClientRequestAssignedToAssistantInstance.ResponsibleAssistant.Email = “[email protected]”;
ClientRequestAssignedToAssistantInstance(SMTP.EmailBodyTextCharset) = “UTF-8”;
ClientRequestAssignedToAssistantInstance(SMTP.From) = “[email protected]”;
ClientRequestAssignedToAssistantInstance(SMTP.EmailBodyText) = “You got new client request to handle.”;
ClientRequestAssignedToAssistantInstance(SMTP.Subject) = “New client request”;
ClientRequestAssignedToAssistantInstance(SMTP.SMTPHost) = “test-server”;
ClientRequestAssignedToAssistantInstance(SMTP.SMTPAuthenticate) = 0;
Expression shape:
SendNewOrderMessageToFreeAssistantPort(Microsoft.XLANGs.BaseTypes.Address) = “mailto:” + “[email protected]”;
-
October 5, 2009 at 4:32 AM #23382
The problem was (my guess) with default adapter. Smtp host was set incorrectly in default adapter and even though I specified host dynamically default value was used.
-
May 27, 2010 at 9:13 AM #24822
Did this resolve your problem.
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.