Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/11/2006, 17:33
CARLOS.asp
 
Fecha de Ingreso: noviembre-2006
Ubicación: BARCELONA
Mensajes: 30
Antigüedad: 18 años, 2 meses
Puntos: 0
Es Un Problema De Orden, Lo He Resuelto

ES UN PROBLEMA DE ORDEN, Y CON AYUDA LO HE RESUELTO EN PARTE


<%@ Language=VBScript %>
<%
Dim producto, Cantidad, productoTotal, Total, email, index

Set Mailer = Server.CreateObject("SMTPsvg.Mailer")


Mailer.FromName = "texto"
Mailer.FromAddress = "[email protected]"
Mailer.AddRecipient"[email protected]"
Mailer.Subject = "teto"
Mailer.Bodytext = "texto"
Mailer.ContentType = "text/html"
Mailer.charset = 2
Mailer.RemoteHost = "smtpMail.dominio.com"
Cuerpo = "<HTML><BODY bgColor=""#FFFF80""><body style=""font-family: Century Gothic; font-weight: bold""><br></BODY></HTML>"

For index = 1 to Request.Form.Count

producto = Request.form("producto" & index)
Cantidad = Request.form("Cantidad" & index)
productoTotal = Request.form("productoTotal" & index)


Mailer.Bodytext = Cuerpo & Cantidad & " unidad/es " & VbCrLf & " &nbsp;&nbsp;&nbsp;&nbsp; " & Producto & VbCrLf & " &nbsp;&nbsp;&nbsp;&nbsp; " & "Total " + " :&nbsp;&nbsp;&nbsp;&nbsp; " & ProductoTotal & " Euros " & VbCrLf

next
Total = Request.form("Total")
Mailer.Bodytext = Cuerpo & "TOTAL A PAGAR" + " . : " + Total + " Euros "


Mailer.Bodytext = Cuerpo & "Nombre&nbsp.&nbsp;&nbsp;&nbsp;" + " . : " + Request.form("nombre") + VbCrLf
Mailer.Bodytext = Cuerpo & "Domicilio.&nbsp;&nbsp;&nbsp;" + " . : " + Request.form("domicilio") + VbCrLf
Mailer.Bodytext = Cuerpo & "Ciudad.&nbsp;&nbsp;&nbsp;" + " . : " + Request.form("ciudad") + VbCrLf
Mailer.Bodytext = Cuerpo & "Codigo Postal....&nbsp;&nbsp;" + " . : " + Request.form("cp") + VbCrLf
Mailer.Bodytext = Cuerpo & "email....&nbsp;&nbsp;&nbsp;" + " . : " + Request.form("email") + VbCrLf
Mailer.Bodytext = Cuerpo & "Telefono.:&nbsp;&nbsp;&nbsp;" + " . : " + Request.form("telefono") + VbCrLf
Mailer.sendmail
if Mailer.SendMail then
response.write ("OK")
else
response.write ("NO OK.")+ Mailer.Response
end if
%>