Dawn McCarroll

ADWH.COM strives to be the Internet web hosting company that small business and non-profit organizations rely on to meet their web site hosting and Internet business needs. We offer a full range of hosting options and tools and can customize a plan for any need.

Mar 092011
 
Share

You can enable detailed error messages for your classic ASP site defaulted to Windows/IIS by using a web.config file with the following code. This is useful in diagnosing issues with a site but for security reasons should be turned off once the site is in production:

<configuration>
  <system.webServer>
    <httpErrors errorMode=”Detailed” />
  </system.webServer>
</configuration>
Share
Mar 042011
 
Share

You can use the following code saved into a file with a .asp extension to test CDOSYS functionality; CDOSYS is a built-in component in ASP, so utilizing it from your ASP code takes no additional effort on your part.

Example using CDOSYS

You will need to change the following variables:

  • .Item(cdoSMTPServer)
  • .Item(cdoSendUserName)
  • .Item(cdoSendPassword)
  • .To
  • .From

<%
Const cdoSendUsingMethod       = “http://schemas.microsoft.com/cdo/configuration/sendusing”
Const cdoSendUsingPort         = 2
Const cdoSMTPServer            = “http://schemas.microsoft.com/cdo/configuration/smtpserver”
Const cdoSMTPServerPort        = “http://schemas.microsoft.com/cdo/configuration/smtpserverport”
Const cdoSMTPConnectionTimeout = “http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout”
Const cdoSMTPAuthenticate      = “http://schemas.microsoft.com/cdo/configuration/smtpauthenticate”
Const cdoBasic                 = 1
Const cdoSendUserName          = “http://schemas.microsoft.com/cdo/configuration/sendusername”
Const cdoSendPassword          = “http://schemas.microsoft.com/cdo/configuration/sendpassword”

Dim objConfig  ‘ As CDO.Configuration
Dim objMessage ‘ As CDO.Message
Dim Fields     ‘ As ADODB.Fields

‘ Get a handle on the config object and it’s fields
Set objConfig = Server.CreateObject(“CDO.Configuration”)
Set Fields = objConfig.Fields

‘ Set config fields we care about
With Fields
        .Item(cdoSendUsingMethod)       = cdoSendUsingPort
        .Item(cdoSMTPServer)            = “mail.(domain.com)”
        .Item(cdoSMTPServerPort)        = 25
        .Item(cdoSMTPConnectionTimeout) = 10
        .Item(cdoSMTPAuthenticate)      = cdoBasic
        .Item(cdoSendUserName)          = “webmaster@example.com”
        .Item(cdoSendPassword)          = “yourPassword”

        .Update
End With

Set objMessage = Server.CreateObject(“CDO.Message”)

Set objMessage.Configuration = objConfig

With objMessage
        .To       = “Nobody <nobody@example.com>”
        .From     = “Web Master <webmaster@example.com>”
        .Subject  = “Test message using CDOSYS SMTP”
        .TextBody = “This is a test email message using CDOSYS SMTP Sent @ ” & Now()
        .Send
End With

Set Fields = Nothing
Set objMessage = Nothing
Set objConfig = Nothing
%>

Share
Jan 122011
 
Share

What do you want your website to do for you? This is the most critical question to answer when trying to figure out what kind of a site you need. For instance;

  1. Do you want a website to merely advertise your business or organization?
  2. Do you need to be able to update it on a regular basis with new articles or information?
  3. Are you going to sell a product or a whole host of products?
  4. Is this going to be a personal site?

If you want to just advertise your business, you may want to opt for a static site that rarely changes. These can be built with an easy to use WYSIWYG editor like Expressions Web or Coffee Cup Web Editor.

If you are going to update the site with fresh articles or information, then you may want to consider a blog software like WordPress, or MoveableType. Each of these have strong features that allow for changing the site on the fly.  There are also CMS (Content Management Systems) like Joomla that lend themselves very well to multiple users. All of these are editable via a web page and are publicly available (free). They also have different levels of learning to be done to become proficient at using them.

If you are going to sell a single or small product selection, you might want to consider a blog software that will allow you to have static pages and install a PayPal shopping cart.  These can be very effective for promoting and selling a small product line. You can also build a static site where you program in the PayPal features you want. These two solutions are very inexpensive and can be set up in a very short time.

If you have hundreds or thousands of products, you definitely want to invest in a shopping cart solution. These can save you a lot of heartache, in billing, shipping, and reporting issues, but do require a significant time investment to start. I have experience with SquirrelCart and a couple of others. I also know a nice lady that does custom shopping cart solutions if you would like a referral.

If you are going to build a personal site to post family or personal events or pictures and/or maintain a  log of  topics important to you, then I definitely recommend a blog software that costs nothing and can be maintained via a web browser.

Please post questions. I am happy to expound on this subject.

Share