Sunday, 13 July 2008

Command Line E-mailer

New application to send an e-mail from the command line. I found that most applications available for download on the internet were not capable of performing all the common e-mail sending functionality. This application covers all the bases I required.

* Attach multiple files to the e-mail.
* Send an e-mail to multiple recipients (including CC and BCC).
* Create e-mail message from a text file.
* Send e-mails in HTML format.
* Provide authentication information to the server and optionally send over SSL.
* Friendly error messages and input validation.
* FREE!

Download the zip or exe or read more check on my main website at DevEnterprise.NET

Wednesday, 07 May 2008

FCKeditor - HTTP Error 404 - Not Found.

While working on the content management for my website, I wanted to use a WYSIWYG editor to edit parts of my home page. I have used FCKeditor before and find it one of the most complete editors out there at the moment, besides it's been around for years now...

They have a .NET control wrapper for it so you can just drag it onto your web forms from the control toolbox. This seemed like the perfect solution until actually trying to run the application for the first time. I followed all the instructions on the support section on their website and everything should have worked.
  1. Add the main control code (FCKeditor directory) to the root of the site.
  2. Add the .NET wrapper assembly to the bin directory or add it as a reference to your project.
  3. Add the control to the control toolbox and drag it on, done, or so it seems.

For some or other reason this fails with a HTTP 404 error? After much searching on the support pages I couldn't find a solution to this issue. I did dig up a vague answer on a forum but it boils down to this:

The default location of the FCKeditor control can't be found if your site is running in a virtual directory. The solution to this, thankfully is quite simple. You need to add the location of the control files to BasePath property of the control.

EG: If you have the FCKeditor directory in the root of your site you would use "BasePath='~/FCKeditor/'"
NB: You must provide a trailing forward slash otherwise you get a "The resource cannot be found." error!

So to close off, your code needs to look like this with the path of the editor control directory as the string for BasePath.

Tuesday, 29 April 2008

DevEnterprise.NET

I have just recently put up my personal web site www.deventerprise.net
I want to blog about new technologies especially regarding C# and .NET and my experience in using them. This will also serve as a learning experience for me and hopefully I can help others overcome any issues that I come across.

Ideally I can refer back to my own blog as a means for finding information on how to do certain things and also as a log of any particularly difficult problems that needed to be solved.

UPDATE: Started a new software development blog using all the latest tools at my disposal: www.brutaldev.com