If you wanna email with asp, try the following:
.To = "yourGuestBookReader@theirDomain"
.TextBody= "thank you. .blah blah blah ... "
I personally email as soon as the database insert is finished. So, there's no need to get the email from database.