% name = trim(request.form("nome")) from = trim(request.form("email")) city = trim(request.form("cidade")) if request.servervariables("REQUEST_METHOD") = "POST" then if (len(trim(from))= 0) then msg = "Por favor, digite seu e-mail" call imprimetela(name,from,city) else '================= '= Envia o email = '================= Dim objMail Set objMail = CreateObject("CDONTS.Newmail") objMail.TO = "equipe@sobresites.com" objMail.From = from ' You can send anonimous 'mail if you so choose objmail.Subject = "Cadastro de E-Mail" objMail.MailFormat = cdoMailFormatMime objMail.BodyFormat = cdoBodyFormatHTML objMail.Body = "
Cadastro de Guia de Desenvolvimento Web
" & name & "
" & from & "
" & city & "
" objMail.send set objMail = Nothing response.redirect ("confirmacad.htm") End if else call imprimetela("","","") End if %> <% function imprimetela(name,from,city) %>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||