TransWikia.com

How to set the Reply-To header using BizTalk SMTP adapter?

Stack Overflow Asked on December 18, 2021

MS BizTalk Server 2016

I try to send an email message using a Dynamic Port.

I initialize SMTP properties in the code like that:

EmailMessage(SMTP.Subject) = "ReplyTo test subject";
EmailMessage(SMTP.SMTPHost) = ..
EmailMessage(SMTP.From) = ..
EmailMessage(SMTP.SMTPAuthenticate) = 0;   
EmailMessage(SMTP.EmailBodyTextCharset) = "UTF-8"; 
EmailMessage(SMTP.MessagePartsAttachments) = 0;
EmailMessage(Microsoft.XLANGs.BaseTypes.ContentType) = "text/html";

Looking through the list of available properties of an SMTP adapter How to Configure an SMTP Send Port

I can’t find how to set a Reply-To parameter. Can you help with this?

One Answer

Strangely there is not option to set the reply to address in the BizTalk SMTP adapter even though they do havea ReplyBy field that does mention it.

SMTP Adapter Property Schema and Properties

Name : ReplyBy
Type : xs:dateTime
Description : Specify a dateTime value for the Reply-To header in the outgoing e-mail message.

See this thread Reply-To in SMTP that basically outlines these options.

  1. Create a C# helper class that you call to send the email that you call from BizTalk
  2. Create your own custom SMTP adapter that has that functionality
  3. Use a 3rd party such as the email adapter from /n software

The other option as per my comments, is to set the From address to where you want the replies to go, and if you want that to go to multiple people, make that an email distribution list email address.

Answered by Dijkgraaf on December 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP