If you're running your're own server make sure that CDONTS and SMTP server is installed(if not re-run the NT Option pack and Add the SMTP mail). If you're not running you have an NT web host they probably have it installed already.
plug in the following code:
or if you want to screw around with your own custom components and use early binding set a reference to Microsoft CDO for NTS 1.2 Library but to use it you'll have to make sure you've installed SMTP Mail Server on your machine.Code:<% set objNewMail = Server.CreateObject("CDONTS.NewMail") with objNewMail .From = "[email protected]" .To = "[email protected]" .Body = "Body of the email" .Subject = "Subject line" .Send end with set objNewMail = Nothing %>




Reply With Quote