%
Dim sPath, sScriptDir, sDSN
Const adOpenKeyset = 1
Const adLockPessimistic = 2
sScriptDir = Request.ServerVariables("SCRIPT_NAME")
sScriptDir = StrReverse(sScriptDir)
sScriptDir = Mid(sScriptDir, InStr(1, sScriptDir, "/"))
sScriptDir = StrReverse(sScriptDir)
sPath = Server.MapPath(sScriptDir) & "\"
sDSN="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/dados/mcruz3z.mdb")
sSQLCat = "SELECT * FROM mod4 ORDER BY texto"
set RsCat=Server.CreateObject("ADODB.Recordset")
RsCat.Open sSQLCat, sDSN, adOpenKeySet, adLockPessimistic
sSQLCatx = "SELECT * FROM home ORDER BY ordem"
set RsCatx=Server.CreateObject("ADODB.Recordset")
RsCatx.Open sSQLCatx, sDSN, adOpenKeySet, adLockPessimistic
If Not RsCatx.Bof then
RsCatx.Movefirst
End if
strThisPage = Request.ServerVariables("SCRIPT_NAME")
strReferringPage = Request.ServerVariables("HTTP_REFERER")
strhost = "mail.marcoscruz.com.br"
strFromName = "Fale Conosco"
strFromEmail = "contato@marcoscruz.com.br"
strToEmail = "contato@marcoscruz.com.br"
strSubject = "Contato Marcos Cruz"
texto="Mensagem Automática" & chr(13) & chr(10)
texto= texto & "Formulário de Envio da Página Contato" & chr(13)& chr(10)
texto=texto & "
"
texto= texto & "Data de Envio: " & Request.Form("data") & chr(13)& chr(10)
texto=texto & "
"
texto= texto & "Nome: " & Request.Form("nome") & chr(13)& chr(10)
texto=texto & "
"
texto= texto & "Email: " & Request.Form("email") & chr(13)& chr(10)
texto=texto & "
"
texto= texto & "Fone: " & Request.Form("fone") & chr(13)& chr(10)
texto=texto & "
"
texto= texto & "Comenta: " & Request.Form("assunto") & chr(13)& chr(10)
texto=texto & "
"
texto=texto & "
"
texto = texto & "Contato Marcos Cruz"
strBody = texto
Set Mail1 = Server.CreateObject("Persits.MailSender")
Mail1.Host = strhost
Mail1.From = strFromEmail
Mail1.FromName = strFromName
Mail1.IsHTML = true
Mail1.Subject = strSubject
Mail1.AddAddress email
Mail1.AddBcc strToEmail
Mail1.Body = strBody
Mail1.Username = "contato@marcoscruz.com.br"
Mail1.Password = "poph0w69"
Mail1.Send
Set Rs = Nothing
%>
|
<%= RsCat("texto2") %> |
|
<% if RsCatx("imagem1")<>"" then %> " target="blank"> |