Author |
|
divac Newbie
Joined: 22 October 2012
Online Status: Offline Posts: 1
|
Posted: 22 October 2012 at 7:07am | IP Logged
|
|
|
Hello,
I use web browser Winforms control for my e-mail client. Sending text is working ok, but I would like to send embedded pictures in mail body. So what would be the best way to achive this, because I see that function LoadBodyText can only read html files on disk ?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 22 October 2012 at 7:44am | IP Logged
|
|
|
There are several approaches possible here:
1. Store HTML document on filesystem, with inline images properly referenced here. Upon using LoadBodyText method, inline images will be attached to the message and their HTML references will be updated accordingly.
2. You can add files to your message manually. AttachmentCollection.Add method has multiple overloads, pick the overload which allows for supplying contentID value. In HTML body, make sure src attribute of your image contains cid: followed by contentID value.
3. Inline attachments can be embedded automatically, with no need to have them stored on filesystem. For more info, see this section of MailBee.NET Objects Developer's Guide.
Hope this helps!
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|