Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/08/2002, 10:46
TETSUO
 
Fecha de Ingreso: enero-2002
Mensajes: 19
Antigüedad: 23 años, 3 meses
Puntos: 0
Re: Urgente!!Necesito enviar un Mail desde ASP

Hola,
si estás trabajando en un IIS, pues ya tienes el componente CDONTS instalado.

Si quieres comprobar que lo tienes prueba con este código simple:


<%
origen = "[email protected]"
mail = request.form("mail")
titol = "safdsaf sdaf dsaf"
missatge = "sdfsa fdsa fsdaf "
copiaa = "[email protected]"
copiaocu = "[email protected]"
'adjunt = "D:\Inetpub\wwwroot\afasfd\proba.txt"

Set ObjetoCDO = Server.CreateObject("CDONTS.NewMail")

ObjetoCDO.From = origen
ObjetoCDO.To = mail
ObjetoCDO.Subject = titol
ObjetoCDO.Body = missatge
ObjetoCDO.Cc = copiaa
ObjetoCDO.Bcc = copiaocu
ObjetoCDO.Importance = 1
'ObjetoCDO.AttachFile adjunt

ObjetoCDO.Send

Set ObjetoCDO = Nothing
%>


Salu2,
TETSUO.