If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Cdonts

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-05, 03:51
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 362
Cdonts

I wrote this code to send an e-mail but the MailObject.Cc that is not at our e-mail server (a free account at yahoo for testing) has not received the e-mail, what is wrong?
Thank you
dimis


Code:
Set MailObject = Server.CreateObject("CDONTS.NewMail") 

MailObject.From = "unknown@some.net"
mailName= request.QueryString("email")
MailObject.To = "dimis@some.net" 
MailObject.Subject = "some"
MailObject.Body = syndromh 
MailObject.Cc = trim(request.QueryString("email"))
MailObject.Send 
Set MailObject = Nothing
Reply With Quote
  #2 (permalink)  
Old 12-14-05, 08:24
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
For testing perhaps try switching the To and Cc parts to see if e-mails are really being sent. If e-mails are being sent then perhaps yahoo is flagging your e-mail as spam for some reason. If e-mails are not being sent then perhaps switch to the newer CDO instead of the outdated CDONTS.

And here's a nice CDO link even if you don't use the attachment part:
Email (with Attachment)
http://www.asp101.com/samples/email_attach.asp

And if all else fails then perhaps ask your Web host for a sample e-mail script that works on their server.
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
  #3 (permalink)  
Old 12-23-05, 14:11
fredservillon fredservillon is offline
Registered User
 
Join Date: Oct 2005
Posts: 178
Quote:
Originally Posted by dimis2500
I wrote this code to send an e-mail but the MailObject.Cc that is not at our e-mail server (a free account at yahoo for testing) has not received the e-mail, what is wrong?
Thank you
dimis


Code:
Set MailObject = Server.CreateObject("CDONTS.NewMail") 

MailObject.From = "unknown@some.net"
mailName= request.QueryString("email")
MailObject.To = "dimis@some.net" 
MailObject.Subject = "some"
MailObject.Body = syndromh 
MailObject.Cc = trim(request.QueryString("email"))
MailObject.Send 
Set MailObject = Nothing
Try this. I used it and sends email to yahoo.
Code:
Dim objMailer
SET objMailer = Server.CreateObject("CDO.Message")
objMailer.From = Sendby
objMailer.To = email_or_Pagers
objMailer.Subject = "Message"
objMailer.TextBody = Msg
objMailer.Send
set objMailer = Nothing
I believe starting Server 2000 CDONTS is no longer supported. I used it before and it quit when my server provider upgraded to server 2000.

http://www.servillon.com

Last edited by fredservillon; 12-23-05 at 14:13.
Reply With Quote
  #4 (permalink)  
Old 01-16-06, 05:24
kropes2001 kropes2001 is offline
Registered User
 
Join Date: Nov 2005
Location: Honolulu HI
Posts: 118
I am running win server 2003 and CDONTS still works with it.


dimis,
if the company you are using for hostnig is set up like me, then the email address that you are putting in the "from" part of the message has to exist on the server. otherwise the server just rejects the attempt and it goes into digital oblivion. its a measure to help prevent spam. it requires that the sender of the email have a valid account on the server.
__________________
.
.
http://www.GetMySiteOnline.com - Can you help me Get My Site Online ? (Yes. That is EXACTLY what we do.)

http://www.GetMySiteOnline.com/FightingSpam/
__________________________
caeli enarrant gloriam Dei !
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On