Ravindar, Biztalk Developer and Administrator

Just another BizTalk blog

Custom pipeline component prepared for SMTP is sending mail as attachment instead of as body

Today i have come across a problem that we are recieving mail from SMTP adapter as a attachement. Infact we should get it as a body content.

what i have missed is this line code

inmsg.BodyPart.ContentType=”text/plain”

this will set how the mail will be sent.

adding this line in the pipeline component solved my problem

Advertisements

April 21, 2010 - Posted by | Biztalk Server

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: