none
biztalk server RRS feed

  • Question

  • sir while sending an email through biztalk server there is the following error in the event log -

    The Messaging Engine could not send the message to the dynamic send port. The outbound transport could not be resolved because a matching transport protocol prefix could not be derived from the URL sushil.sahu@rgensolutions.com.

    but i am not getting this error means how to resolve this , can you please suggest me something?

    thanking you

    sushil sahu


    sushil sahu
    Wednesday, August 24, 2011 8:57 AM

Answers

  • As a sample you can try something like the following:

    For sending emails out of a BizTalk-Orchestration to varying recipients you can use a dynamic send port. The sending-parameters you can set directly in the orchestration.

    You need a "Message Assignment" and an "Expression"-shape.

    In the "Message Assignment"-shape you set the parameters for the smtp-stuff:

    msgSend(SMTP.CC) = "xyz@sample.com; ...";
    msgSend(SMTP.Subject) = "TESTMAIL: blabla";
    msgSend(SMTP.From) = "BizTalk@sample.com";
    msgSend(SMTP.SMTPHost) = "smtp.sample.com";
    msgSend(SMTP.SMTPAuthenticate) = 0;
    

    The recipient is configurable as the URI-address of the adapter as an property of the dynamic sending port itself in the "Expression"-shape:

    portSend(Microsoft.XLANGs.BaseTypes.Address)=
     "mailto:abc@sample.com"
    

    If you want set the recipient as the content of a message, a simple way is to use XPath like in this example:

    portSend(Microsoft.XLANGs.BaseTypes.Address) =
     "mailto:" + 
     (System.String) xpath(msgSend, "string(/*[local-name()='Root' and namespace-uri()='http://SampleNamespace']/*[local-name()='To' and namespace-uri()=''])");
    
    for a XML-document like

     

    <Root>
     blabla
     <To>abc@sample.com</To>
    </Root>


    --------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 9:23 AM
    Wednesday, August 24, 2011 9:09 AM
  • Hi Sushil,

    See this post on dynamic send port configuration for guidance. See also How to Use Expressions to Assign Values to Dynamic Ports MSDN.

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly


    BizTalk
    Wednesday, August 24, 2011 9:15 AM
    Moderator
  • You are getting this error because you are missing mailto prefix as mentioned below.
    SendPortName(Microsoft.XLANGs.BaseTypes.Address)= "mailto:<Email>"


    Don't forget to mark the post as answer or vote as helpful if it does, Regards -Rohit Sharma (http://rohitbiztalk.blogspot.com)
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 9:31 AM
    Wednesday, August 24, 2011 9:21 AM
    Moderator
  • sir i have assigned the same parameters in the message assignment shape which you have sent me in your next reply to my question.
    sushil sahu
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 9:25 AM
    Wednesday, August 24, 2011 9:25 AM
  • Copy and paste the parameters from the message assignment shape in this window and lets see what you are doing wrong.

    Cheers,

    Bali


    --------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    • Edited by DPS Bali Wednesday, August 24, 2011 9:29 AM .
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 9:59 AM
    Wednesday, August 24, 2011 9:28 AM
  • ok

    thank you


    sushil sahu
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 9:29 AM
    Wednesday, August 24, 2011 9:29 AM
  • Thank you sir


    sushil sahu
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 9:31 AM
    Wednesday, August 24, 2011 9:31 AM
  • Hi Sushil,

    I notice you ask a lot of question on BizTalk forum, which is great. I do have a few pointers/recommendations for you using forum. One is asking one question per thread and giving your question an appropriate new name other than BizTalk. You can if you want, but for some members it is hard to determine what you question is. Second if mark an answer, please verify it answer the question i.e. if some asking to elaborate more it is not answer. Finally you can also vote if you feel answer/post is very helpful or pointed you in right direction (you do not have mark each post as answer).
    I have unmarked some posts as they do not answer you question!

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/


    BizTalk
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 11:27 AM
    Wednesday, August 24, 2011 9:46 AM
    Moderator
  • ok

    MultiPartMsg.MessagePart_1 = InMsg;

     

    MultiPartMsg(SMTP.Subject)="SMTP adapter mail";

     

    MultiPartMsg(SMTP.From)="d.deepika18@yahoo.com";

     

    MultiPartMsg(SMTP.SMTPHost)="smtp.mail.yahoo.com";

     

    MultiPartMsg(SMTP.SMTPAuthenticate)=0;


    sushil sahu
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 10:00 AM
    Wednesday, August 24, 2011 10:00 AM
  • You will also have to set the URI-address of the adapter as an property of the dynamic sending port itself in the Message Assignment -shape:

    portSend(Microsoft.XLANGs.BaseTypes.Address)=
     "mailto:abc@sample.com"

    portSend is your dynamic port's name and replace abc@sample.com with proper email address.

    Cheers,
    Bali

    --------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    • Edited by DPS Bali Wednesday, August 24, 2011 10:14 AM .
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 11:27 AM
    Wednesday, August 24, 2011 10:05 AM
  • Hi,

    I suggest you debug your process by stepping through orchestration you can follow steps/procedures described in MSDN, seedebugging orchestration and related links. That said there are alternative ways on debuging an orchestration using DebugView(see Richard's post part 1 andpart 2) or BizTalk Cat Framework (see my post). The alternatives give your flexibility in viewing what occurs in an orchestration and give a better overview. If you do so you will see what happens in your process and where issues arise. Also see eventlog and BizTalk Administration Console if you experiencing behaviour you do not expect. If you do not understand what happens that you can go to forums and explain the issue. It will benifiticial to yourself learning/understanding BizTalk better and for us forums members to aid you better in resolving the issue at hand.

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly


    BizTalk
    • Marked as answer by sushil sahu Thursday, August 25, 2011 6:17 AM
    Wednesday, August 24, 2011 10:26 AM
    Moderator
  • This error is self explanatory and as it mentions you have to provide the authentication for your SMTP server to send an email.

    Cheers,

    Bali


    --------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    • Marked as answer by sushil sahu Thursday, August 25, 2011 6:17 AM
    Wednesday, August 24, 2011 11:38 AM

All replies

  • Can you give the details of the values you are setting for this dynamic port.

    Cheers,

    Bali


    --------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    Wednesday, August 24, 2011 9:07 AM
  • As a sample you can try something like the following:

    For sending emails out of a BizTalk-Orchestration to varying recipients you can use a dynamic send port. The sending-parameters you can set directly in the orchestration.

    You need a "Message Assignment" and an "Expression"-shape.

    In the "Message Assignment"-shape you set the parameters for the smtp-stuff:

    msgSend(SMTP.CC) = "xyz@sample.com; ...";
    msgSend(SMTP.Subject) = "TESTMAIL: blabla";
    msgSend(SMTP.From) = "BizTalk@sample.com";
    msgSend(SMTP.SMTPHost) = "smtp.sample.com";
    msgSend(SMTP.SMTPAuthenticate) = 0;
    

    The recipient is configurable as the URI-address of the adapter as an property of the dynamic sending port itself in the "Expression"-shape:

    portSend(Microsoft.XLANGs.BaseTypes.Address)=
     "mailto:abc@sample.com"
    

    If you want set the recipient as the content of a message, a simple way is to use XPath like in this example:

    portSend(Microsoft.XLANGs.BaseTypes.Address) =
     "mailto:" + 
     (System.String) xpath(msgSend, "string(/*[local-name()='Root' and namespace-uri()='http://SampleNamespace']/*[local-name()='To' and namespace-uri()=''])");
    
    for a XML-document like

     

    <Root>
     blabla
     <To>abc@sample.com</To>
    </Root>


    --------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 9:23 AM
    Wednesday, August 24, 2011 9:09 AM
  • Hi Sushil,

    See this post on dynamic send port configuration for guidance. See also How to Use Expressions to Assign Values to Dynamic Ports MSDN.

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly


    BizTalk
    Wednesday, August 24, 2011 9:15 AM
    Moderator
  • You are getting this error because you are missing mailto prefix as mentioned below.
    SendPortName(Microsoft.XLANGs.BaseTypes.Address)= "mailto:<Email>"


    Don't forget to mark the post as answer or vote as helpful if it does, Regards -Rohit Sharma (http://rohitbiztalk.blogspot.com)
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 9:31 AM
    Wednesday, August 24, 2011 9:21 AM
    Moderator
  • also a small suggestion , put a proper subject to you queries rather than biztalk server, would help people responding to them.

    Cheers,

    Bali

     


    --------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    Wednesday, August 24, 2011 9:22 AM
  • sir i have assigned the same parameters in the message assignment shape which you have sent me in your next reply to my question.
    sushil sahu
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 9:25 AM
    Wednesday, August 24, 2011 9:25 AM
  • Copy and paste the parameters from the message assignment shape in this window and lets see what you are doing wrong.

    Cheers,

    Bali


    --------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    • Edited by DPS Bali Wednesday, August 24, 2011 9:29 AM .
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 9:59 AM
    Wednesday, August 24, 2011 9:28 AM
  • ok

    thank you


    sushil sahu
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 9:29 AM
    Wednesday, August 24, 2011 9:29 AM
  • Thank you sir


    sushil sahu
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 9:31 AM
    Wednesday, August 24, 2011 9:31 AM
  • Hi Sushil,

    I notice you ask a lot of question on BizTalk forum, which is great. I do have a few pointers/recommendations for you using forum. One is asking one question per thread and giving your question an appropriate new name other than BizTalk. You can if you want, but for some members it is hard to determine what you question is. Second if mark an answer, please verify it answer the question i.e. if some asking to elaborate more it is not answer. Finally you can also vote if you feel answer/post is very helpful or pointed you in right direction (you do not have mark each post as answer).
    I have unmarked some posts as they do not answer you question!

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/


    BizTalk
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 11:27 AM
    Wednesday, August 24, 2011 9:46 AM
    Moderator
  • ok

    MultiPartMsg.MessagePart_1 = InMsg;

     

    MultiPartMsg(SMTP.Subject)="SMTP adapter mail";

     

    MultiPartMsg(SMTP.From)="d.deepika18@yahoo.com";

     

    MultiPartMsg(SMTP.SMTPHost)="smtp.mail.yahoo.com";

     

    MultiPartMsg(SMTP.SMTPAuthenticate)=0;


    sushil sahu
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 10:00 AM
    Wednesday, August 24, 2011 10:00 AM
  • ok sir

    thank you


    sushil sahu
    Wednesday, August 24, 2011 10:02 AM
  • You will also have to set the URI-address of the adapter as an property of the dynamic sending port itself in the Message Assignment -shape:

    portSend(Microsoft.XLANGs.BaseTypes.Address)=
     "mailto:abc@sample.com"

    portSend is your dynamic port's name and replace abc@sample.com with proper email address.

    Cheers,
    Bali

    --------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    • Edited by DPS Bali Wednesday, August 24, 2011 10:14 AM .
    • Marked as answer by sushil sahu Wednesday, August 24, 2011 11:27 AM
    Wednesday, August 24, 2011 10:05 AM
  • sir now i have set the URI-address of the adapter as given by you now the text file is dissappearing from the recieve location but it is not going to the reciepient what should be the problem sir please let me know ?
    sushil sahu
    Wednesday, August 24, 2011 10:21 AM
  • Hi,

    I suggest you debug your process by stepping through orchestration you can follow steps/procedures described in MSDN, seedebugging orchestration and related links. That said there are alternative ways on debuging an orchestration using DebugView(see Richard's post part 1 andpart 2) or BizTalk Cat Framework (see my post). The alternatives give your flexibility in viewing what occurs in an orchestration and give a better overview. If you do so you will see what happens in your process and where issues arise. Also see eventlog and BizTalk Administration Console if you experiencing behaviour you do not expect. If you do not understand what happens that you can go to forums and explain the issue. It will benifiticial to yourself learning/understanding BizTalk better and for us forums members to aid you better in resolving the issue at hand.

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly


    BizTalk
    • Marked as answer by sushil sahu Thursday, August 25, 2011 6:17 AM
    Wednesday, August 24, 2011 10:26 AM
    Moderator
  • Do you mean to say the email is not going to the recipient. Well there can be many reasons, are you configuring the properties and authentication correctly and also on a lighter note just wait a while after it is sent may be its caught in bad weather.

    Cheers,

    Bali


    --------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    Wednesday, August 24, 2011 10:42 AM
  • sir actually the text file is dessappearing but not going to the recipient and the following error is logging in the event log-

     

     

    A message sent to adapter "SMTP" on send port "SEND AN EMAIL_1.0.0.0_SEND_AN_EMAIL.SMTPOrchestration_sendsmtpPort_e6a4a84a6e4291ba" with URI "mailto:sahu_girish@ymail.com" is suspended.

     

    Error details: The server rejected the sender address. The server response was: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html

    please let me know what should i do ?

    thanking you

    sushil sahu


    sushil sahu
    Wednesday, August 24, 2011 11:31 AM
  • This error is self explanatory and as it mentions you have to provide the authentication for your SMTP server to send an email.

    Cheers,

    Bali


    --------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    • Marked as answer by sushil sahu Thursday, August 25, 2011 6:17 AM
    Wednesday, August 24, 2011 11:38 AM
  • Hi Sushil,

    Thanks for posting output of eventlog. This very helpful for determing issue at hand. It seems that you need to be authenticated to send email to address. In SMTP Adapter you will need to configure the SMTP Adapter, see MSDN How to configure an SMTP Send Handler. You will have to do something with propery Authentication type. My guess is that you have to provide credentials through basic authentication.

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly


    BizTalk
    Wednesday, August 24, 2011 11:39 AM
    Moderator
  • SIR AGAIN IT IS GIVING THE SAME ERROR IN THE EVENT LOG
    sushil sahu
    Wednesday, August 24, 2011 12:08 PM
  • Hi Sushil,

    Are you able to send emails to other people or alternative email address? Perhaps you email has been blocked or invalid.


    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly


    BizTalk
    Wednesday, August 24, 2011 12:39 PM
    Moderator
  • sir i have also tried to send an email using different-different email addresses then also it is not working and showing the same error in the event log.
    sushil sahu
    Wednesday, August 24, 2011 12:43 PM
  • Hi Sushil,

    You need to send in case of yahoo your yahoo ID and password. So in your case yahoo emailaddress and password. You try send email to account using outlook and see if that works. At least your solution is able to send email now; issue is that email is not being accepted.

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly


    BizTalk
    Wednesday, August 24, 2011 2:06 PM
    Moderator