Solved

cdont.newmail debug pls

Posted on 2002-05-09
8
252 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
 

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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 video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now