Web Hosting

The Web Hosting Community

Advanced search
  • HOME
  • TOP HOSTING
  • TOOLS
  • FORUM
  • WIKI
  • NEWS
  • English
  • Spanish
  • Hebrew
  • Forum ‹ Main Forum ‹ Programming Discussion ‹ ASP / NET
  • Change font size
  • Print view
  • FAQ
  • Register
  • Login

How to use CDONTS to send emails

All about microsoft's ASP and .NET technology. Questions and answeres, scripts and anything to with other microsoft scripting technologies.
Post a reply
1 post • Page 1 of 1

How to use CDONTS to send emails

Postby frank on Fri Aug 15, 2008 10:31 pm

hi,
I was trying to write a simple script to send emails using CDONTS, but it doesn't seem to work.
I am using "Microsoft Windows NT Server" on my remote server and windows xp home on the local one.

see the following code, and please advise me if you can:
Code: Select all
<%@ language= "VBscript" %>
<% Option Explicit
Dim NewMail, mBody
Set NewMail = Server.CreateObject("CDONTS.NewMail")
NewMail.To= "someone@yahoo.com"
NewMail.From= "test123f@gmail.com"
mBody= "test 123"
NewMail.Subject = "email test with CDONTS - take 1"
NewMail.Body = mBody   
NewMail.Bodyformat=0 
NewMail.Mailformat=0
NewMail.Send
Set NewMail=Nothing
%>
frank
 
Posts: 7
Joined: Thu May 08, 2008 3:23 pm
Top

Post a reply
1 post • Page 1 of 1

Return to ASP / NET

Who is online

Users browsing this forum: No registered users and 0 guests

  • About Us
  • Privacy
  • Terms & Conditions
  • Web Host Login
  • List Your Web Host
  • Contact us
Copyright © 2007 HostPedia.org Web Hosting, All rights reserved, Forum powered by phpBB.
cron