Author |
|
scotty Newbie
Joined: 27 August 2007
Online Status: Offline Posts: 25
|
Posted: 18 October 2007 at 12:26am | IP Logged
|
|
|
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 |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 18 October 2007 at 3:14am | IP Logged
|
|
|
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 |
|
|
scotty Newbie
Joined: 27 August 2007
Online Status: Offline Posts: 25
|
Posted: 18 October 2007 at 4:07am | IP Logged
|
|
|
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 |
|
|