Missing body text

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

Hi,

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?

 

Coordinator
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();
mg.Contents.Add(ct);

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

// mg.Contents.Add(ct);

the text goes out fine.

Thanks
Coordinator
Feb 11, 2013 at 12:32 AM
Hi.

Thank you for your post.
It may be resolved by this post.
http://higlabo.codeplex.com/discussions/431418
Please use latest version.

regards.
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.

Thanks