Solved

cdont.newmail debug pls

Posted on 2002-05-09
8
274 Views
Last Modified: 2012-06-21
what wrong with this?


Dim objmyMail, strtext
strtext = "This is a sample message."  
Set objmyMail = Server.CreateObject("CDONTS.NewMail")
objmyMail.From = "test"
objmyMail.To = "name@yahoo.com"
objmyMail.Body = strtext
objmyMail.Send
Set objmyMail = Nothing
end sub

thanks,
duncan
0
Comment
Question by:owlsey
  • 5
  • 2
8 Comments
 

Accepted Solution

by:
PaulMurugesan earned 50 total points
ID: 7000563
duncan

mail id provided in objmymail.from is not valid "mailid@yahoo.com"

change the code and try it

regards
paul
0
 
LVL 2

Expert Comment

by:zombeen
ID: 7000577
all properties like from , to , cc , bcc must have VALID EMAIL ADDRESSES . Only then the Cdonts will work. Otherwise , even if it doesnt show you any error, it still wont work

Zombeen
0
 

Author Comment

by:owlsey
ID: 7006833
doesnt example@microsoft.com qualify as a valid email address?

i set all emails to mine email w/yahoo & still nogo
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:owlsey
ID: 7006837
fyi- i changed them to 'test' & mailid@yahoo/name@yahoo.com so mine would display & then get spammed
0
 
LVL 2

Expert Comment

by:zombeen
ID: 7007697
objmyMail.From = "test"
is invalid. put in a email formatted string here

Also r u getting any error, if yes..please mention the error too and which line it comes

Zombeen
0
 

Author Comment

by:owlsey
ID: 7008755
Zombeen-

i have tried numerous emails- one from the same domain- ex "email@test.com"; one from yahoo "email@yahoo.com"

where 'email' is my actual email address- just not posted here

i rewrote the sub as
set objMail = createobject("CDONTS.Mail")
objMail.Send "from@address.com", "to@address.com", "subj line", "body txt", 0
set objMail = Nothing

still not working

also- have a txt write sub execute that is in the same sub as cdonts.newmail sub is

i do not receive any error msg- the entire from is an if.else statement & writes an input in teh else on the webpage- it displays so i believe its an error free sub...need serverside support- which i cant get- but can i check smtp setup correctly through remote connection?

thanks,
duncan

i know this was a rambling post- but thanks for your help
0
 

Author Comment

by:owlsey
ID: 7011855
turns out it was a safehost(?) issue- no relay allowed...told me to specify the server "webserver5" in the code

solution:

Set objmyMail = Server("webserver5").CreateObject("CDONTS.NewMail")


is good?

thanks,
duncan
0
 

Author Comment

by:owlsey
ID: 7014271
you were first- but its a different issue

thanks,
duncan
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question