ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old June 29th, 2003, 01:32 AM
devilsdomain devilsdomain is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 2 devilsdomain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question why isn't my cdonts.newmail working

The below is a code to send mail thru CDONTS.newmail object
But it doesn't work. I"m getting no errors, but the mail isn't sent either . Please help.

Thanks in advance




<html>
<head>
<title>Mailin</title>
</head>
<body>
<%
Option Explicit
Dim objNewMail

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


objNewMail.From = "fadcrashnil@yahoo.com"
objNewMail.To = "calculus_kuan@rediff.com"

objNewMail.Subject = "This is a test Mail"
objNewMail.Body = "This is the Body text of this test mail."
objNewMail.Send


Set objNewMail = Nothing


Response.Write "Email has been sent"

%>
</body>
</html>

Reply With Quote
  #2  
Old June 29th, 2003, 11:07 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
Has the smtp server been setup correctly?

Reply With Quote
  #3  
Old July 4th, 2003, 07:19 PM
pinhut pinhut is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: devon
Posts: 2 pinhut User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to pinhut Send a message via Yahoo to pinhut
if you're running this script on a remote site, then yes, it probably won't work (unless you own yahoo.com)

the address needs to be valid for the domain it is sat on. typically, URL

jason

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > why isn't my cdonts.newmail working


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway