Showing posts with label Sensitive properties. Show all posts
Showing posts with label Sensitive properties. Show all posts

Friday, June 26, 2015

Sending Mail from Dynamic Port with Password Authentication

If you are sending an e-mail over the SMTP adapter using a dynamic send port and you want to use user/password authentication at the SMTP server, you have to do the following in the orchestration:
  • Set all relevent SMTP properties
  • Promote the SMTP properties in a correlation set - but not the Passwort property because this one is marked as "IsSensitive" and hence cannot be promoted.
This is due to security reaspons so that a BizTalk operator cannot see the password in any running instance.

If you promote the password anyway, you run into the following exception:
Shape name: MailSend
ShapeId: %GUID%
Exception thrown from: segment 1, progress 12
Inner exception: The value assigned to property 'SMTP.Password' is not valid: '%password%'.
Exception type: InvalidPropertyValueException

Thanks for sharing, Ronny!