CDONTS Mail Problem

Results 1 to 2 of 2

Thread: CDONTS Mail Problem

  1. #1
    Join Date
    Dec 1969

    Default CDONTS Mail Problem

    Hi, I receive user response from a feedback form with radio buttons.But i do not receive any mail when submitting the form.<BR>Any ideas wht&#039;s wrong the code is below:<BR><BR>Dim strData<BR><BR>If Request.Form("rdbIncrease") = 1 Then<BR>strData=strData& vbCrLf &" Q1.Aim to increase the number of students "<BR>elseif Request.Form("rdbIncrease") = 2 then<BR>strData=strData & vbCrLf" Q1.Aim to keep the numbers steady "<BR>elseif Request.Form("rdbIncrease") = 3 then<BR>strData=strData& vbCrLf &" Q1.Aim to decrease the number of students "<BR> <BR>&#039;Setup the email sending<BR>Set objMail = Server.CreateObject("CDONTS.NewMail")<BR>objMail.T o=""<BR>objMail.From="New Form-nextfeedback form"<BR>objMail.Subject = "Questionnaire"<BR>objMail.Body = strdata<BR>objMail.Send<BR>Set objMail = Nothing<BR><BR><BR>I have installed CDONTS on the server (NT4 sp6) and use ASP2.0.<BR>Other feedback forms work fine, the directory with the ASP code has execute rights.<BR>Thanks in Advance

  2. #2
    Join Date
    Dec 1969

    Default objMail.From="New Form-nextfeedback form"

    this needs to be a valid email address... otherwise it will fail

Posting Permissions

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