Solved

cdont.newmail debug pls

Posted on 2002-05-09
8
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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 is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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