Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: LoadBodyText & Web Browser control Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
divac
Newbie
Newbie


Joined: 22 October 2012
Online Status: Offline
Posts: 1
Posted: 22 October 2012 at 7:07am | IP Logged Quote divac

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 View divac's Profile Search for other posts by divac
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 22 October 2012 at 7:44am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide