Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending an html form by email
Message
De
16/05/2001 13:06:41
 
 
À
16/05/2001 09:54:15
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00507785
Message ID:
00507954
Vues:
9
>I'm building a WebSite for the intranet where I work. My web server is Microsoft PWS (win98). I want to make a form that send the data entered to my email adress. I found code like below but this is not working ( Can't create an object 'CDONTS.NewMail').
>
>Here is the code that I use:
>
>
>Dim objCDO
>Set objCDO = CreateObject("CDONTS.NewMail")
>
>Dim txtSubject
>txtSubject = "Here is the message"
>
>objCDO.To = "me@mymail.com"
>objCDO.From = "you@yourmail.com"
>
>objCDO.Subject = "test"
>objCDO.Body = txtSubject
>objCDO.Send
>So, if you see my problem here, tell It to me!!! Thanks!


CDONTS runs on NT or 2000 Server.
Try using a free SMTP email component like ASPEmail: www.aspemail.com (be sure not to type www.aspmail.com) :-)
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform