Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: Error on sending Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
scotty
Newbie
Newbie


Joined: 27 August 2007
Online Status: Offline
Posts: 25
Posted: 18 October 2007 at 12:26am | IP Logged Quote scotty

Hi,
I am trying to send an email using MailBee.NET with the html-body set to

C#:
smtp.Message.BodyHtmlText = "<HTML><BODY><div><PRE>1</PRE> </div><div><pre>2</pre></div>& lt;/BODY></HTML>";

On calling smtp.Send() the following exception is thrown:


"An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
Additional information: Index and length must refer to a location within the string."


I am using MailBee.Net Version 3.0.0.43

Sample-code to reproduce the bug:

C#:
MailBee.SmtpMail.Smtp smtp = new MailBee.SmtpMail.Smtp();
smtp.SmtpServers.Add("mail.indoe.at", "testaccount", "test");
smtp.Connect();
smtp.Message.Subject = "Testmail";
smtp.Message.BodyHtmlText = "<HTML><BODY><div><PRE>1</PRE> </div><div><pre>2</pre></div>& lt;/BODY></HTML>";
smtp.Message.From = new MailBee.Mime.EmailAddress("fromaddress@here.com", "TestSender", "Test");
smtp.Message.To.Add(new MailBee.Mime.EmailAddress("toaddress@here.com", "Test", "Test"));
smtp.Send("toaddress@here.com", "toaddress@here.com");
Back to Top View scotty's Profile Search for other posts by scotty
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 18 October 2007 at 3:14am | IP Logged Quote Andrew

We tried to reproduce the issue, but have not succeeded yet. Please try the latest version (3.0.1.70) of MailBee.NET.dll.

If you're able to reproduce the issue with the latest version of MailBee.NET.dll, please provide us with the following info:

- Which OS (exact name and version) do you use?
- Which versions of .NET Framework are installed on your workstation?
- Which version of MS Visual Studio (including service packs) do you use?
- Exact sample code you use, including valid SMTP server name, username, password, e-mail addresses, etc.

So we would be able to reproduce your environment exactly. Please use Request Support Form for this purpose.


Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
scotty
Newbie
Newbie


Joined: 27 August 2007
Online Status: Offline
Posts: 25
Posted: 18 October 2007 at 4:07am | IP Logged Quote scotty

With the latest version (3.0.1.70) i couldn't reproduce the described behavior. The problem seems to be fixed.


Thank you for your quick response.
Back to Top View scotty's Profile Search for other posts by scotty
 

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