%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Set rs = Server.CreateObject("ADODB.Recordset") if request("enviar") = "Enviar" then 'insere o contato nome = replace(trim(request("nome")),"'","") email = replace(trim(request("email")),"'","") mensagem = replace(trim(request("mensagem")),"'","") aceitaTermo = request("aceitaTermo") if aceitaTermo = "sim" then aceitaTermo = true else aceitaTermo = false end if cidade = replace(trim(request("cidade")),"'","") estado = request("uf") interesse = request("interesse") fone = replace(trim(request("fone")),"'","") auxData = now() ISODate = Year(auxData) & "-" & Month(auxData) & "-" & Day(auxData) & " " & hour(auxData) & ":" & minute(auxData) & ":" & second(auxData) sql = "INSERT INTO contatoDownload (nome, email, mensagem, AceitaTermo, telefone, cidade, uf, codinteresse, datahora) VALUES(" sql = sql & "'" & nome &"', " sql = sql & "'" & email &"', " sql = sql & "'" & mensagem &"', " sql = sql & aceitaTermo & ", " sql = sql & "'" & fone &"', " sql = sql & "'" & cidade &"', " sql = sql & "'" & estado &"', " sql = sql & interesse &", " sql = sql & "'" & ISODate &"')" on error resume next 'Response.Write(sql) 'response.end conSQL.Execute(sql) if err.number=0 then msg = "" 'insere no banco de emails sql = "INSERT INTO bancoEmail (ColEmail) VALUES ('" & email &"')" conSQL.Execute(sql) if err.number=0 then msg = "" else msg = err.Description end if else msg = err.Description end if if msg = "" then 'email para cliente Set objCDOSYSMail = Server.CreateObject("CDO.Message") Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration") objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp2.locaweb.com.br" objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")= 25 objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 30 objCDOSYSCon.Fields.update Set objCDOSYSMail.Configuration = objCDOSYSCon MsgBody = "" MsgBody = MsgBody & "
" MsgBody = MsgBody & "" MsgBody = MsgBody & "" MsgBody = MsgBody & "" MsgBody = MsgBody & "Obrigado por se Cadastrar Conosco!
" MsgBody = MsgBody & "Agora você poderá acessar a área de downloads, recorte o link a seguir e cole no seu navegador:
http://www.portaldeauditoria.com.br/down/downd1532513251.htm
"
MsgBody = MsgBody & "
Atenciosamente,
Portal de Auditoria
Veja nossas novidades em Cursos Online (com condições especiais)
www.portaldeauditoria.com.br/VideoAula/default.asp
Acompanhe conteúdos e informações em nosso site
www.portaldeauditoria.com.br
Nova mensagem recebida - Download Gratuito
" MsgBody = MsgBody & "Data/Hora: "&now()&"
"
MsgBody = MsgBody & "
Nome: "&nome&"
"
MsgBody = MsgBody & "
Email: "&email&"
"
MsgBody = MsgBody & "
Telefone: "&fone&"
"
MsgBody = MsgBody & "
Cidade: "&cidade&"
"
MsgBody = MsgBody & "
UF: "&estado&"
"
MsgBody = MsgBody & "
Mensagem: "&replace(mensagem,chr(10),"
")&"
"
MsgBody = MsgBody & ""
'response.write(MsgBody)
objCDOSYSMail.From = "Portal de Auditoria
<%
set conSQL=nothing
Set rs = Nothing
%>