none
Urgent : I want to Send input File as an attchment to Email through BizTalk. please help!

    Question

  • Hi All,

    Suppose I want to pick file from receive location and send it as attchment to some e-mail.

    Please advice how to do that.  when I try to configure SMTP send port, it only accepts static file names.

    I can have any file as an input to receive location.

    Please help as this is urgent,.

    Wednesday, March 07, 2012 11:47 AM

All replies

  • Hi

    You can do following,

    • create a receive port to get the file
    • create a smtp send port, set the filter property to BTS.receive port name = name of the receive port which you have created in above step
    • Set the pipeline of SMTP send port to MIME/SMIME encoder.
    • Set the SMTP Server IP and if required propert credentials on the SMTP send port in the properties.
    • try to test. I tshould work fine.
    • Also you would need to make sure if the BizTalk server is allowed to send emails using the SMTP server, Pls consult your SMTP admin regarding this.
    • Make sure antivirus on the BizTalk host is not blocking the "mass emailing" , You might need to have a word with Antivirus Admin.

    I hope it helps!

    For more infromation please refer this  and about using SMIME/MIME pipeline settings

    HTH

    Naushad


    • Edited by Naushad.Alam Wednesday, March 07, 2012 12:03 PM added pipeline details
    • Marked as answer by Lloyd ZhangModerator Wednesday, March 14, 2012 9:08 AM
    • Unmarked as answer by Bhushan14 Wednesday, March 14, 2012 1:07 PM
    Wednesday, March 07, 2012 12:00 PM
  • Hi Naushad,

    Thanks for your reply.

    Do you mean to say create a pipeline with MIMS/SMIME Encoder.

    Are there any properties we need to set?

    Wednesday, March 07, 2012 12:06 PM
  • Yes, I think you would need to set below property:

    Send body part as attachment

    Thanks

    Naushad

    Wednesday, March 07, 2012 12:09 PM
  • I am able to send a mail through orchestration with Static output file name.

    1) i want to set SMTP properties using Receive pipeline copponent and preserve input file name.

    2) just use MIME decoder to send a mail.

    Any other way ? If anything please suggest with samples.

    Monday, March 12, 2012 12:56 PM
  • Hi

    You can use dynamic send port and set SMTP properties from Orchestrations.


    HTH,
    Naushad Alam
    If this is helpful or answers your question - please mark accordingly!
    alamnaushad.wordpress.com |

    My new TechNet Wiki "BizTalk Server: Performance Tuning & Optimization"

    Monday, March 12, 2012 2:58 PM
  • Hi

    Are you getting any error while trying the above steps? Or are you looking for any other approaches?

    Please let us know . I think this is a simlar thread of this . I think you have given your requirements in this thread. Please see my notes here


    HTH,
    Naushad Alam

    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
    alamnaushad.wordpress.com |

    My new TechNet Wiki "BizTalk Server: Performance Tuning & Optimization"


    Wednesday, March 14, 2012 1:41 PM
  • Here is a full sample code how to do this with orchestration.

    Leonid Ganeline [BizTalk MVP] BizTalkien: Advanced Questions: have fun - test your knowledge

    • Proposed as answer by Naushad.Alam Tuesday, July 03, 2012 4:59 PM
    Thursday, March 15, 2012 3:15 AM