Missing body text

Jan 29, 2013 at 1:07 AM
Edited Jan 29, 2013 at 1:08 AM


I am using WinRT library and I found something wrong with SMTP.

When I attach a file, email misses body text.

but without the attached file, email can send body text.

Do you hava any idea about that?


Jan 30, 2013 at 2:52 AM

Please show me your code.

I found bug in some condition.Here is a reproduct code.
1.attatch text file to MailMessage object.
2.Set BodyText of MailMessage object.
3.Send mail.
Is it same your bug?

I'll fix this in next release.

Feb 10, 2013 at 5:44 PM
I've found the same issue in the sample code, even if there is no real attachment.
If I keep the lines:

SmtpContent ct = new SmtpContent();

I receive no body text, but if I just comment the line like:

// mg.Contents.Add(ct);

the text goes out fine.

Feb 11, 2013 at 12:32 AM

Thank you for your post.
It may be resolved by this post.
Please use latest version.

Feb 11, 2013 at 8:11 AM
Sumimasen Higty, I forgot to say that I am not using WinRT.
It's just a good old windows application with your sample code so I'm not sure if that post is relevant.

I have changed nothing in your sample code except setting the HostName as I've said in another post.