ho un form stra carico di radio button non capisco per quale motivo non funzioni
abbiate pieta per un principiante di asp
- <%
theSmtp = "smtp.rimini.com"
thePort = 25
recipient = "pa@gmail.com" ' destinatario
theAuthenticate = 0 ' 1 = con autenticazione; 0 = senza autenticazione
theUser = "tuamail@sito.it" ' l'utente per autenticarsi al server smtp
thePass = "123xyz" ' la password per autenticarsi al server smtp
siteName = request.serverVariables("SERVER_NAME")
sender = request.form("email") ' l'indirizzo del mittente
for each item in request.form
corpo = corpo & item & ": " & request.form(item) & vbCrLf
next
corpo = corpo & "indirizzo ip mittente: " & request.serverVariables("REMOTE_ADDR") & vbCrLf
corpo = corpo & "data/ora: " & now() & vbCrLf
set mail = server.createObject("CDO.Message")
set conf = server.createObject("CDO.Configuration")
set flds = conf.fields
flds(cdoSendUsingMethod) = cdoSendUsingPort
flds(cdoSMTPServer) = theSmtp
flds(cdoSMTPServerPort) = thePort
flds(cdoSMTPAuthenticate) = theAuthenticate
if theAuthenticate = 1 then
flds(cdoSendUsername) = theUser
flds(cdoSendPassword) = thePass
end if
flds.update()
set mail.configuration = conf
mail.to = recipient
mail.from = sender
mail.subject = siteName & " - Contatto online"
mail.textBody = corpo
mail.send()
set flds = nothing
set conf = nothing
set mail = nothing
%>