Ver Mensaje Individual
  #6 (permalink)  
Antiguo 06/02/2005, 10:16
Garet
 
Fecha de Ingreso: agosto-2002
Mensajes: 74
Antigüedad: 22 años, 8 meses
Puntos: 1
Mira, este es un ejemplo bastante bueno de aspmail, los hay mejores, pero vamos con este se entiende casi todo, solo decirte que tambien esta la propiedad IsHTML que es un boleano para enviar mails html

Código HTML:
<%
Dim strEmail, strName, strComments, Mail
strEmail = request.form("Email")
strName = request.form("Name")
strComments = request.form("Comments")

Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "Mail.YOURDOMAINNAME.com"
Mail.From = strEmail
Mail.AddAddress "YOUR EMAIL ADDRESS HERE"
Mail.Subject = "YOUR SUBJECT HERE"
Mail.Body = "Email: " & strEmail & vbCrLf & "Name: " & strName & vbCrLf & "Comments: " & vbCrLf & strComments
On Error Resume Next
Mail.Send
Set Mail = Nothing
IF Err <> 0 THEN Response.Write "Sorry, there was an error and your email was not sent." & Err.Description
END IF
%>