SMTP Email Attachment Problem

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › SMTP Email Attachment Problem

Viewing 0 reply threads
  • Author
    Posts
    • #17857

      I am a newvbie and have tried without luck to rename the attachment in my email to something other than “body.xml”.

      As the code below suggest I’m using a dynamic sent port and using the message as the attachment. Does anybody know how I can achieve this?

      msgOrderAckOut = msgOrderAck;

      Sp_OrderAck(Microsoft.XLANGs.BaseTypes.Address)="mailto:[email protected]";

      RefNbr = xpath(msgOrderAckOut,"string(//*[local-name()='SupplierOrderRef'])");

      msgOrderAckOut(SMTP.EmailBodyFileCharset)="UTF-8";

      msgOrderAckOut(SMTP.EmailBodyTextCharset)="UTF-8";

      msgOrderAckOut(SMTP.Subject) = "CLOrderAck-Ref-" + RefNbr;

      msgOrderAckOut(SMTP.EmailBodyText) = "OrderAck";

      msgOrderAckOut(SMTP.EmailBodyFile) = "OrderAck";

      msgOrderAckOut(SMTP.From)= "[email protected]";

      msgOrderAckOut(SMTP.SMTPHost) = "ORP-EXCHANGE";

      msgOrderAckOut(SMTP.SMTPAuthenticate) = 0;

      msgOrderAckOut(SMTP.MessagePartsAttachments)=1;

      Thanks for any help.

      Frank

Viewing 0 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.