BizTalk SMTP Adapter

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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dept808Author Commented:
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?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.