Search The ForumSearch   RegisterRegister  LoginLogin

MailBee Objects

 AfterLogic Forum : MailBee Objects
Subject Topic: MailBee.Mime.MailMessage Problem Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
nickname81
Newbie
Newbie


Joined: 23 July 2010
Online Status: Offline
Posts: 12
Posted: 23 July 2010 at 1:01am | IP Logged Quote nickname81

Hello sorry for my English.
I'm trying to create an Outlook message through the component MailBee.Mime.MailMessage, everything is correct, but when I open the file is not in composition mode, but these are the keys "REPLY", "Forward" ... . Why?
Back to Top View nickname81's Profile Search for other posts by nickname81
 
nickname81
Newbie
Newbie


Joined: 23 July 2010
Online Status: Offline
Posts: 12
Posted: 23 July 2010 at 1:03am | IP Logged Quote nickname81

The code is this excuse me...

Dim myeml As String = "c:\msg.eml"
Dim mymsg As String = "c:\msg.msg"
MailBee.OutlookMsg.MsgConvert.LicenseKey = "KEY...:"
Dim msg As New MailBee.Mime.MailMessage
msg.Attachments.Add("c:\a.txt")
msg.Subject = "aaa"
msg.BodyHtmlText = "bbbb"
msg.SaveMessage(myeml)
MailBee.OutlookMsg.MsgConvert.EmlToMsg(myeml, mymsg)
Back to Top View nickname81's Profile Search for other posts by nickname81
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 23 July 2010 at 2:09am | IP Logged Quote Igor

If you'd like the message to be editable rather than composed already, set MsgConvert.MsgAsDraft property to true.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
nickname81
Newbie
Newbie


Joined: 23 July 2010
Online Status: Offline
Posts: 12
Posted: 23 July 2010 at 2:27am | IP Logged Quote nickname81

MsgConvert.MsgAsDraft is not in my menu....
Compare only in 6.0?
My version is 5.7.2.156.

Thanks. :)
Back to Top View nickname81's Profile Search for other posts by nickname81
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 23 July 2010 at 2:35am | IP Logged Quote Igor

That's right, this property was introduced in later versions. If upgrading to MailBee.NET Objects 6.0 is not an option, you can grab the final 5.9 build of the DLL here.

In some versions, prior to MsgAsDraft property has been introduced, switching the 3rd boolean parameter of EmlToMsg method had the same effect, a separate MsgAsDraft property was added later. There's a chance this might help.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
nickname81
Newbie
Newbie


Joined: 23 July 2010
Online Status: Offline
Posts: 12
Posted: 23 July 2010 at 3:06am | IP Logged Quote nickname81

In correct the procedure.

I have import.

Imports MailBee
Imports MailBee.Mime
Imports MailBee.ImapMail
Imports MailBee.Outlook

And the code is now.

Dim mymsg As String = "c:\msg.msg"
Dim converter As New Outlook.MsgConvert
MsgConvert.LicenseKey = "KEY"
Dim test As New MailBee.Mime.MailMessage
test.To.AddFromString("to...")
test.From.Email = "from"
test.Subject = "object"
test.BodyHtmlText = "message"
test.Attachments.Add("c:\a.txt")
converter.MsgAsDraft = True
converter.MailMessageToMsg(test, mymsg)

I have the exception for the license...
I have use the same license of 5.7.2.156 is a error?
Back to Top View nickname81's Profile Search for other posts by nickname81
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 23 July 2010 at 3:11am | IP Logged Quote Igor

You'll need new license key for MailBee.NET Objects 6.0. Submit a ticket via HelpDesk to get one. Be sure to use the email address you have specified to purchase a license.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
nickname81
Newbie
Newbie


Joined: 23 July 2010
Online Status: Offline
Posts: 12
Posted: 23 July 2010 at 5:41am | IP Logged Quote nickname81

Hi, i have used a trial code for test the code and it works... but .... another code, for the IMAP, with the new dll not working properly,does not generate errors but does not perform the same operations as before ... Why?
Back to Top View nickname81's Profile Search for other posts by nickname81
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 23 July 2010 at 5:45am | IP Logged Quote Igor

Quote:
Hi, i have used a trial code for test the code and it works...


You have been using 30-days trial key for the version released last year? How's that?

Anyway, if you're sure the right license key is used for the DLL, checking IMAP log might help.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
nickname81
Newbie
Newbie


Joined: 23 July 2010
Online Status: Offline
Posts: 12
Posted: 23 July 2010 at 5:56am | IP Logged Quote nickname81

Il codice è stato generato quando prima ho scaricato il MailBee.NET Object, ho aggiunto il nuovo riferimento alla nuova DLL con il nuovo XML, e come codice di licenza ho usato il codice autogenerato al momento del download.

Devo inserire il codice?
MailBee.NET.dll : 6.0.2.220
Back to Top View nickname81's Profile Search for other posts by nickname81
 
nickname81
Newbie
Newbie


Joined: 23 July 2010
Online Status: Offline
Posts: 12
Posted: 23 July 2010 at 5:56am | IP Logged Quote nickname81

The code was generated when I first downloaded the MailBee.NET Object, I added the new reference to the new DLL with the new XML, and how I used the license key auto-generated code when downloading.

Should I put the code?
MailBee.NET.dll: 6.0.2.220
Back to Top View nickname81's Profile Search for other posts by nickname81
 
sofiaj
Newbie
Newbie
Avatar

Joined: 30 November 2010
Location: Philippines
Online Status: Offline
Posts: 1
Posted: 30 November 2010 at 12:51am | IP Logged Quote sofiaj

Nice posts. Thanks for sharing. By the way, I'm a newbie here.
Back to Top View sofiaj's Profile Search for other posts by sofiaj
 

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