Announcement

Collapse
No announcement yet.

Online Contact Forms

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

  • Online Contact Forms

    Can anyone please let me know what scripts your hosting company uses for online contact forms? I have been asking but seem to be struggling to find an answer. I have asp pages and I want to add a contact form which allows someone to complete, submit and that submission comes to my email address


    PLEASE HELP

  • #2
    Afraid I can't help when it comes to creating asp forms and sending date via mail, mine are all php based.

    I should have though there would be many freebies about....no?

    Comment


    • #3
      Jon - Many thanks for replying at least. I am familiar with ASP but I was kind of hoping that someone who hosts on these servers or perhaps a member of staff could have just said you need "blah blah" to make this go

      Oh well such is life

      Comment


      • #4
        Whilst you are waiting for a reply, am pretty sure they use php or perl, and the contact forms they do use come as part of various sofware such as whmcs.
        good luck

        Comment


        • #5
          Originally posted by jon123 View Post
          Whilst you are waiting for a reply, am pretty sure they use php or perl, and the contact forms they do use come as part of various sofware such as whmcs.
          good luck

          The good news is that I got it working and picked up some learning along the way too.

          Comment


          • #6
            You can use Secure PHP Form Mailer Script Dragon Design. You can customize this script.

            Comment


            • #7
              Place the necessary text boxes on the page.

              In the code behind:

              Imports System
              Imports System.Text

              Protected Sub btnSend_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSend.Click
              Const ToAddress As String = "you@yourdomain"

              mm.Subject = ddlEnquiry.Text
              mm.Body = txtName.Text + vbNewLine + txtEmail.Text + vbNewLine + txtMessage.Text
              mm.IsBodyHtml = False

              Dim smtp As New Net.Mail.SmtpClient

              smtp.Send(mm)

              then in the web.config file

              <system.net>
              <mailSettings>
              <smtp from="you@yourdomain">
              <network
              host="mail.yourdomain"
              port="25"
              userName="yourUserName"
              password="Password" />
              </smtp>
              </mailSettings>
              </system.net>

              Comment


              • #8
                that was a good reply!

                Comment

                Working...
                X