none
SMTP Adapter

    Question

  • Hello, 

    I am trying to use SMTP Adapter to send e-mail notification with original FILE NAME in Subject line or Text Body of the e-mail. How can i achieve this without using orchestration


    • Edited by btmsdnuser Tuesday, January 07, 2014 7:48 PM
    Tuesday, January 07, 2014 7:28 PM

Answers

  • To answer your specific question, you would use a custom Pipeline Component to compose the SMTP.Subject context property using FILE.ReceivedFileName as one of the sources.

    However, using an Orchestration is easier and there is absolutely nothing wrong with doing so.

    Tuesday, January 07, 2014 8:08 PM
  • I am able to resolve this by simply adding macro "%SourceFileName%" in Subject line of SMTP adapter.
    • Marked as answer by btmsdnuser Friday, January 17, 2014 2:20 PM
    Friday, January 17, 2014 2:20 PM

All replies

  • To answer your specific question, you would use a custom Pipeline Component to compose the SMTP.Subject context property using FILE.ReceivedFileName as one of the sources.

    However, using an Orchestration is easier and there is absolutely nothing wrong with doing so.

    Tuesday, January 07, 2014 8:08 PM
  • Boatseller is right!

    you should using an Orchestration to do it is easier,

    If you do not want using Orchestration please refer to

    http://blogs.msdn.com/b/nabeelp/archive/2008/09/11/sending-an-html-email-without-an-orchestration.aspx

    If would you like try to use SMTP Adapter to send e-mail without deploy biztalk project form visual studio (only simple scenarios and not flexible ^^) use can create static send port in Biztalk Server Administration with SMTP Adapter and then configuration SMTP server, user, password, subject, text body...

    Regards,

    Wednesday, January 08, 2014 3:25 AM
  • I am able to resolve this by simply adding macro "%SourceFileName%" in Subject line of SMTP adapter.
    • Marked as answer by btmsdnuser Friday, January 17, 2014 2:20 PM
    Friday, January 17, 2014 2:20 PM