none
BizTalk SMTP MessagePart.Attachment Name Change RRS feed

  • Question

  • I have been trying to change the Msg Part Attachment Name to .csv but i keep getting noname.txt in email as attachment.

    Please refer to the following configuration in orchestration 

     

    strEmailBody="List";
    strEmailSubject="Emails";

    strSMTPServer="xxxxxx";

    EmailMessage.EmailBody=  new RawString(strEmailBody);
    EmailMessage.EmailBody(Microsoft.XLANGs.BaseTypes.ContentType) = "text/plain";

    EmailMessage.EmailAttachment=msg_FF_ANY;   //flatFile msg ..comma delimited through a pipeline

    EmailMessage.EmailAttachment(Microsoft.XLANGs.BaseTypes.ContentType) = "text/CSV";

    EmailMessage.EmailAttachment(MIME.FileName) = "List.CSV";


    EmailMessage(SMTP.Subject) = strEmailSubject;
    EmailMessage(SMTP.From) = strEmailFrom;
    EmailMessage(SMTP.EmailBodyFileCharset) = "UTF-8";
    EmailMessage(SMTP.SMTPHost) =  strSMTPServer;
    EmailMessage(SMTP.MessagePartsAttachments) = 1;

    Port_ListSendMail(Microsoft.XLANGs.BaseTypes.Address)="mailto:" + strEmailTo;

    I am only getting noname.txt as attachment in the email . I have to change the noname.txt to list.csv .

    Thanks


    usher A

    Friday, November 17, 2017 11:30 AM

All replies