Results 1 to 4 of 4

Thread: Cdonts

  1. #1
    Join Date
    Jan 2005
    Posts
    362

    Unanswered: 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

  2. #2
    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

  3. #3
    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 15:13.

  4. #4
    Join Date
    Nov 2005
    Location
    Honolulu HI
    Posts
    119
    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.HawaiianHope.org
    Providing Technology services to non profit orgs, Homeless Shelters, Food Pantries, Clean And Sober Houses and more.
    To date we have given away over 900 free computers !
    __________________________
    caeli enarrant gloriam Dei !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •