I'm attempting to send a message through a BizTalk SMTP Send Port. Specifically, I am sending a message through a "specify-later" port of an orchestration. My goal is to attach the message body to the sent email with an attachment filename of my choosing.
However, no matter what I try the attachment name remains "body.csv"
I have tried:
- Multipart message with a single part + set
MIME.FileName
on this part. - Multipart message with two parts (both attached) + set
MIME.FileName
on both parts (the non-body part correctly had the attachment name, the body part did not). - Standard message + set
MIME.FileName
on the message.
I have tried this with all configurations on the SMTP adapter of "Attach only body part" and "Attach all parts" and none worked.
Currently I have "Attach only body part" and some fixed text (configured on the send port) for the email content.
I have read that some have used the MIME Encoder pipeline in past versions of BizTalk, but apparently this is unnecessary with the SMTP Adapter. Others use custom pipeline components to set MIME.FileName
which is where I'm heading, but seems unnecessary if the MIME.FileName
is already set in my orchestration.
Am I missing something fundamental here for this relatively simple problem?