% Function isgoodemail(email) dim temp2, temp temp2 = false If Instr(email, "@")then temp = right(email, len(email)- instr(email, "@")) IF Instr(temp, ".") Then temp2 = true end if end if isgoodemail = temp2 end function %> <% sub cltmail dim cmd dim cntcnm dim state dim email dim phone dim address dim city dim zip dim information dim problem dim estimate dim reason dim objmail cntcnm=request.form("cntcnm") email=request.form("email") state=request.form("state") phone=request.form("phone") address=request.form("address") city=request.form("city") zip=request.form("zip") information=request.form("information") problem=request.form("problem") estimate=request.form("estimate") reason=request.form("reason") set objMail = Server.Createobject("cdonts.newmail") objmail.from = "info@pellmanelectric.com" objmail.to = email objmail.subject = "Info Requested " objmail.body = "One of our staff members will contact you with the info you've requested." objmail.send set objmail = nothing end sub %> <% sub signupmail dim htmltext dim cmd dim cntcnm dim state dim email dim phone dim address dim city dim zip dim information dim problem dim estimate dim reason dim objmail cntcnm=request.form("cntcnm") email=request.form("email") state=request.form("state") phone=request.form("phone") address=request.form("address") city=request.form("city") zip=request.form("zip") information=request.form("information") problem=request.form("problem") estimate=request.form("estimate") reason=request.form("reason") htmltext = "" htmltext = htmltext & "" htmltext = htmltext & "
" htmltext = htmltext & "" htmltext = htmltext & "" htmltext = htmltext & "The Following Person has Requested Info: " htmltext = htmltext & cntcnm htmltext = htmltext & "
" htmltext = htmltext & "Their Email address is: " htmltext = htmltext & email htmltext = htmltext & "
"
htmltext = htmltext & "Their phone number is:
"
htmltext = htmltext & phone
htmltext = htmltext & "
"
htmltext = htmltext & "Their address is:
"
htmltext = htmltext & address & " "
htmltext = htmltext & city & " "
htmltext = htmltext & state & " " & zip & " "
htmltext = htmltext & "
"
htmltext = htmltext & "The information requested is:
"
htmltext = htmltext & information
htmltext = htmltext & "
"
htmltext = htmltext & "The electrical problem is:
"
htmltext = htmltext & problem
htmltext = htmltext & "
"
htmltext = htmltext & "They would like an estimate on:
"
htmltext = htmltext & estimate
htmltext = htmltext & "
"
htmltext = htmltext & "Contact them by:
"
htmltext = htmltext & reason
htmltext = htmltext & "
"
htmltext = htmltext & "