BizTalk SMTP Adapter

Posted on 2008-11-11
Last Modified: 2012-05-05
I have created an orchestration in BizTalk that looks at a folder and based on the file name sends the file to a different location.  I used the the decide shape and created several diffent send ports (File) which specify different folder locations.  On the Else decision I want to move the file into an Unknown folder and send an email to the admin.  I am able to move the file without issues...  I then created a send port group and created another send port (SMTP) to email the admin.  However the email port is not working, the SMTP adapter is configure with a working server and the Pipeline on the port is set to PassThruTransmit.
Question by:Dept808
    LVL 2

    Accepted Solution

    I am not sure why you have created multople IF condition for Filename...this task can be done using one Dynamic Send port , File.ReceivedFileNameProperty and %SourceFileName% property at the send ports.

    you can also sned the email using dynamic send port using following code will work...please make sure you SMTP server name property of SMTP adapter is configured at Platform-> Hosts
    I have created a video for sending email using SMTP adapter can found the same at
    it has everything you needed

    Author Closing Comment

    Do you think you could elaborate more on how to use the dynamic port to route a flat file to different directories based on filename?

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
    The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
    The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
    The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now