BizTalk Dynamic Emails does not work

Did this below in Message Assignment Shape :

mailOut=InMsg;

mailOut(SMTP.DeliveryReceipt)=true;

mailOut(SMTP.Subject) = "Serengeti: Alert" + InMsg.PONum + InMsg.Status;

mailOut(SMTP.From) = "yyyyy@gmail.com";

mailOut(SMTP.SMTPAuthenticate)= 0;

mailOut(SMTP.SMTPHost) = myHost;

mailOut(SMTP.EmailBodyTextCharset) = "utf-8";

mailOut(SMTP.EmailBodyText) = "This is Body " + InMsg.Status;

mailOut(SMTP.SMTPTo) = "xxxx@gmail.com";

And this in Expression shape :

sndUpdateEMail(Microsoft.XLANGs.BaseTypes.Address) = "mailto:" + "xyz@gmail.com";

sndUpdateEMail(Microsoft.XLANGs.BaseTypes.TransportType) = "SMTP";

I have set dynamic email setup but I am not able to receive any emails.

But if I try with static SMTP adapter, then I am receiving emails.

What am I doing wrong while sending dynamically ? Please suggest

March 28th, 2015 12:21am

Hi,

Set the SMTP host details on the Send Handler instead in the orchestration.
On BizTalk Admin Console -> Navigate to Platform Settings -> Adapters -> SMTP, select the default send handler -> Properties -> Properties, set you SMTP host parameters.

Dynamic send port will always use the default send handler. Send port will use the Send Handler properties unless they are overridden by context properties.

Rachit

Free Windows Admin Tool Kit Click here and download it now
March 28th, 2015 1:06am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics