asp form is not working on our server

asp India
  • 14 years ago
    Hi Everyone,

    I am facing problem in asp form. I have a own windows 2003 server and where I setup so many domain, but there is no any asp form is running. I have tried a lot but still in trouble. Actually we are using CDOSYS component for sending mail to diffrent e-mail ID.

    See this form: http://nntek.com/contact1.shtml

    I am using the bellow mention code for sending the mail through CDOSYS component.

    *************************************************
    <%
    fname=request.Form("fname")
    lname=request.Form("lname")
    phone=request.Form("phone")
    email=request.Form("email")
    country=request.Form("country")
    category=request.Form("category")
    comments=request.Form("comments")

    pagecode="<table width='372' border='1' bgcolor='#f8fceb' align='center' bordercolor='#bcdb50' cellpadding='5' cellspacing='0'>"
    pagecode=pagecode&"<tr bgcolor='#bcdb50'>"
    pagecode=pagecode&"<td colspan='2'><div align='center'><strong><font color='#f8fceb'>"
    pagecode=pagecode& "Contact us mail from NNTEK</font></strong></div></td>"
    pagecode=pagecode&"</tr><tr><strong><font color='#bcdb50'><td width='163'><b> First Name:</b></td><td width='193'>"
    pagecode=pagecode& fname
    pagecode=pagecode&"</tr><tr><strong><font color='#bcdb50'><td width='163'><b> Last Name:</b></td><td width='193'>"
    pagecode=pagecode& lname
    pagecode=pagecode&"</td></font></strong></tr><tr><strong><font color='#bcdb50'><td><strong>Phone:<br></strong></td><td>"
    pagecode=pagecode& phone
    pagecode=pagecode&"</td></font></strong></tr><tr><strong><font color='#bcdb50'><td><strong>Email:<br></strong></td><td>"
    pagecode=pagecode& email
    pagecode=pagecode&"</td></font></strong></tr><tr><strong><font color='#bcdb50'><td><strong>Date:<br></strong></td><td>"
    pagecode=pagecode& country
    pagecode=pagecode&"</td></font></strong></tr><tr><strong><font color='#bcdb50'><td><strong>Feedback:<br></strong></td><td>"
    pagecode=pagecode& category
    pagecode=pagecode&"</td></font></strong></tr><tr><strong><font color='#bcdb50'><td><strong>Feedback:<br></strong></td><td>"
    pagecode=pagecode& comments
    pagecode=pagecode&"</td></font></strong></tr><tr><strong><font color='#bcdb50'><td></td><td></td></font></strong></tr></table>"

    set objSendMail2=CreateObject("CDOSYS.NewMail")
    objSendMail2.From=email
    objSendMail2.To="[email protected]"
    if not len(bcc_mail)=0 then
    objSendMail2.bcc=bcc_mail
    end if
    objSendMail2.BodyFormat=0
    objSendMail2.MailFormat=0
    objSendMail2.Importance=2
    objSendMail2.Subject="Contact us mail from NNTEK"
    objSendMail2.Body=pagecode
    objSendMail2.Send
    set objSendMail2=Nothing
    response.Redirect("thanksemail1.shtml")
    %>
    *************************************************

    So pls solve our problem ASAP.


























































Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“You can stand on the shoulders of giants OR a big enough pile of dwarfs, works either way.”