Web Analytics Made Easy -
StatCounter Form to mail troubles - CodingForum

Announcement

Collapse
No announcement yet.

Form to mail troubles

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Form to mail troubles

    I created a simple form to mail script using CDONTS server object.
    The script would work instantly and the email with the correct infor in it would arrive. However, the email would never be recieved by other email addresses. I thought it could be a forwarding issue, it wasnt that. I tried multiple emails; some would recieve the email others wouldnt.

    Could anyone tell me what sort of things could cause this or what Im doing wrong.

    This code is basically what it involves:

    Set objCDO = Server.CreateObject("CDONTS.NewMail")

    email="[email protected], etc..."
    objCDO.To = email
    objCDO.From = "whatever"
    objCDO.cc = "whatever"
    objCDO.bcc = "whatever"

    txtMessage = "whatever"

    objCDO.Subject = "whatever
    objCDO.Body = txtMessage
    objCDO.Send
    Set objCDO = Nothing

    Thanks

  • #2
    I don't like CDONTS I use ASP mail. ASP mail IMO is easier to use. I know that does nothing for your question but maybe it's another option.
    I would rather be a lion for a day than a lamb that lives forever.

    Comment


    • #3
      Did you try using a valid "from" address?
      Former ASP Forum Moderator - I'm back!

      If you can teach yourself how to learn, you can learn anything. ;)

      Comment

      Working...
      X