Posted on 1 Comment

The ASP Butt Kicking Saga

Hurdle 2 is now complete! The host’s local SMTP server is not configured correctly. The website is hosting its pop/smtp email else where. Using Method 3 of Sending email using CDOSYS ( THE REAL DEAL ) I was able to finally get email to send!

Method 3 ( Using remote mail server )

<% Dim ObjSendMail Set ObjSendMail = CreateObject("CDO.Message") 'This section provides the configuration information for the remote SMTP server. ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network). ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="mail.yoursite.com" ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False) ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 ' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password. 'ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication 'ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="somemail@yourserver.com" 'ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="yourpassword" ObjSendMail.Configuration.Fields.Update 'End remote SMTP server configuration section== ObjSendMail.To = "someone@someone.net" ObjSendMail.Subject = "this is the subject" ObjSendMail.From = "someone@someone.net" ' we are sending a text email.. simply switch the comments around to send an html email instead 'ObjSendMail.HTMLBody = "this is the body" ObjSendMail.TextBody = "this is the body" ObjSendMail.Send Set ObjSendMail = Nothing %>

In addition to what you see here there are plenty of properties you can add to these examples.
Here are a few examples.

Carbon Copy
ObjSendMail.CC = “someone@someone.net”

Blind Carbon Copy
ObjSendMail.BCC = “someone@someone.net”

Send Attachment (we hard code it here, but you could specify the file path using Server.Mappath as well)
ObjSendMail.AddAttachment “c:\myweb\somefile.jpg”

and a ton of other things you can do…
[Source]

Pages I found useful during this hurdle:

See also Microsoft’s CDOSYS Documentation.

The final hurdle is rewriting their document management system. Presently, they have an admin piece that uploads documents to a single directory. The documents are then accessible to their customers. They want the ability to classify those documents. The approach will be to allow the documents to live in subdirectories representing the categories. This should be interesting.

Posted on Leave a comment

Of Being Dad

I jumped on the trampoline with Amy today. We had a blast! My poor head and body didn’t handle it that well. We become sedentary and our bodies uncomfortable with such motions. I’ll have to do it more often! We then went exploring the property and discovered a hole in the ground that we guess must be where a raccoon or skunk lives. We walked down into the dry creek for an inspection. Amy has never done that before and was very amused! While I was inspecting the largest tree on our property, I disturbed a nest of ants and got bit by something. I think they are carpenter ants. Looks like I need to call the Agriculture Extension Agent for a recommendation on a tree doctor. I’d hate to lose that tree! I think I’d cry then sell the house.

Amy and I had a great time outside and she cheerfully requested another exploration and "hike" tomorrow.

Posted on 2 Comments

WARNING ON BLOGRUSH!

I was reading 99 Ways to Promote Your Blog for Free and liking the suggestions. Perhaps it would be fun to promote a little extra traffic to the site. I despise watching websites get overloaded with Javascript widgets and gizmos. However, I am guilty of doing that to Reality Me. It is bogged down with useless, behind the scenes Javascript. My list of round tuits includes cleaning up Reality Me and Domestic Psychology. Things like RobotReplay and PhpMyVisites are no longer of use to me but they remain behind the scenes slowing the site down. The Twitter widget and the MyBlogLog widget I find enhancing to the functionality of the site. I see Google Analytics as a necessary evil and I still debate the value of Adsense on a blog such as Reality Me (although apparent it protects – Can someone help me find that citation? I think Michael Silence carried it a while back. Some law was passed saying that if you run ads on your website you are protected the same was as traditional journalists.).

When I read 99 Ways to Promote Your Blog for Free, BlogRush was in the number one or two position. I should have taken a warning when I noticed the author was not using a referral link. Today I noticed that the Javascript code I put in my sidebar to validate Reality Me with Blogrush had changed from a box of links to other sites to become a Google Adsense box. Now, I have Google ads that run on Reality Me (when the ad isn’t encouraging you to buy the shirt off Cathy’s back) so I think Blogrush put me in danger of being in violation of my TOS with Google. Granted, I was supposed to read the Blogrush TOS and I’m sure they revealed that putting ads on my site is part of the agreement. But I do not agree with that! So I will be parting company with Blogrush. I wonder what is in the #3 position on 99 Ways to Promote Your Blog for Free?

Posted on 1 Comment

Yesterday’s Butt Kicking Continues

Yesterday’s morning R&D centered around trouble shooting an SMTP problem with a Windows2003 server and ASP. Basically, I don’t get the error on my development server, which is still a Windows2000 machine. That means it could be code or server setup. The problem manifests itself when an attempt is made to send an email after a form is submitted.

CDO.Message.1 error ‘80040220’

The “SendUsing” configuration value is invalid.

This error message is all over Google (see also) (remember to use Blingo – aff link!).

I solve this in the next 2 hours!

Update: Why does Google continue to index www.experts-exchange.com?! Never click anything that is a link to www.experts-exchange.com! They obviously understand SEO really well.

Update: Troubleshooting thus far.

Title: The “SendUsing” configuration value is invalid in Windows 2003
Name: Scott Forsyth
Date: 3/27/2006 10:10:04 AM
Comment:
Hi Monde,

On Windows Server 2003, if you don’t specify the default smtp server, it needs to obtain that from the IIS metabase. That isn’t allowed by default in IIS6, but you can add it with metaacl.vbs. Google and download a copy of metaacl.vbs and the run the following:

cscript metaacl.vbs “IIS://Localhost/smtpsvc” IIS_WPG RE
cscript metaacl.vbs “IIS://Localhost/smtpsvc/1” IIS_WPG RE

This will give the IIS_WPG group read permissions to the smtpsrv node so that you’ll be able to obtain the default SMTP server without specifically setting it in code. This will often resolve the error that you have run into.

[Source]

Now, all of that said, only hurdle one has been jumped. My error message of "The "SendUsing" configuration value is invalid." is gone but mail is getting stuck in //Inetpub/mailroot/Queue. At least it is not going to the Badmail folder. Brief break then onto hurdle two.

Posted on Leave a comment

What do I do?

Yesterday I typed frantically for 20.5 hours straight. I am only going to count 12 hours of those since I broke for lunch and 3:30am to noon did include a lot of R&D. Let’s assume I type 60 words a minute. So 12 hours times 60 minutes equals 720 minutes. 720 minutes times 60 words = 43200 words.

The average length of a novel is 60000-100000 words. [Source]
65000+ [Source]
12,500; 15,000; 62,500; or 75,000 [Source]

So even if we cut my 43,200 words in half for 21,600 words it looks like I am well on my way to writing a novel in a day or two. Of course, we could add in the other 8.5 hours of typing for another 30,600 words plus the 43,200 totaling 73,800! A novel in a day! What does Stephen King make per book?