Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

cdont.newmail debug pls

Posted on 2002-05-09
8
Medium Priority
?
303 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 200 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 informatio…
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

705 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