Solved

cdont.newmail debug pls

Posted on 2002-05-09
8
264 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
pass url parameter as session 9 48
Highlight a word from some text 16 50
JQuery Date Time picker not showing 29 114
ASP Classic - Load test 2 45
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
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 …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 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

20 Experts available now in Live!

Get 1:1 Help Now