I try again to add an attachment in an email message (Windows Mobile 6 Porfessionnal).
I add a new message in drafts folder, add attachment with an existing file and update the message. But when I open the message, I see the Attachment field, but this field is empty. Do I forget something ?
email = emails.AddNew();
AttachmentCollection Atts = email.Attachments;
Attachment Att = new Attachment(@"\My documents\My Pictures\Flower.jpg");
Atts.Add(Att);
email.Update();
//Atts = email.Attachments;
//email.Properties[MessageProperty.HasAttachments] return true
// MessageBox.Show(Atts.Count.ToString()); return 1
When I create with outlook a message with an attachment, attachment.name return "Flower.jpg", and when I create a message with ITH with an attachment, attachment.name return "\My documents\My Pictures\Flower.jpg", it's strange, isn't it ?
Can you give us a working sample to add an attachment with an email message, please ?
Best regards,
Inophage