Announcement Announcement Module
Collapse

myhosting.com Forum Guidelines

Welcome to the myhosting.com Forums! The purpose of this forum is to allow you to discuss topics relating to hosting and topics of interest with other myhosting.com Customers. The primary focus should relate to issues not generally included in our Wiki or Control Panel, or information not provided by our Customer Support Team. Some examples include programming and coding support, web site design ideas and SEO practices.

The forum is not meant as a replacement to our Wiki or Customer Support. We highly recommend searching our Wiki before posting on the forum. Also, if you have a question for our Customer Support team, please contact them as you would normally.

We ask that if you have any complaints or questions relating specifically to your account, that you address them to our Customer Support department. Do not post personal account information such as passwords or other sensitive and private information the forum, as this type of information is best kept secret. Also, please be respectful of other users and refrain from defamatory comments or use of coarse language.

We will visit the forum from time to time, and contribute to various topics. We reserve the right to delete any posts which are deemed offensive or against the spirit of the forum. Any spamming or illegal activity will not be tolerated. We also reserve the right to block any user who violates these guidelines.

To get started, we welcome you to sign up at our User Management site. Any account created there will have access to these forums, our Wiki, our Ideas site and commenting permission on our Status Blog.
See more
See less
Emails from Forms in front page Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Emails from Forms in front page

    I am using Front Page to create fill-in forms. I need a form that can be filled out on line, posted to a spreadsheet and the data emailed to the appropriate person. This used to happen in the past on myhosting.com but over recent years, we havenít been able to get the email notifications and it is important that we do. We still can download the csv data but we would like the heads-up achieved with the emails that a new posting has been submitted. Ideas anyone?

  • #2
    Re: Emails from Forms in front page

    Hello RickRoy,

    That is interesting, I will look into your problem and see if I can come up with a solution.

    Thanks,

    Comment


    • #3
      Re: Emails from Forms in front page

      You need to hire a programmer to build the page for you. What you need is something simple so an experienced programmer should take more that 30 min to create the page.

      Below is a sample of how the page will work. Save the code to a file named email.asp and place it on your site. Then visit the page by going to http://yourdomainname.com/email.asp. The page will ask for an email address. When the form is submitted it will save the email address to a file named /cgi-bin/EmailAddresses.csv and it will send an email. Replace yourdomainname.com in the code with your actual domain name.

      <html>
      <head>
      </head>
      <body>
      <%
      if Request.Form("SubmitForm") = "1" then

      Dim EmailAddress
      EmailAddress = Request("EmailAddress")

      'write to csv file
      Dim FileName
      FileName = Server.MapPath("/cgi-bin/") & "\EmailAddresses.csv"
      'Response.Write(FileName)
      'Response.End

      Dim objFSO
      Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

      Dim objLogFile
      Set objLogFile = objFSO.OpenTextFile(FileName, 8, True)
      objLogFile.Writeline(EmailAddress)
      objLogFile.Close


      'send an email
      Dim MyJMail
      Set MyJMail = Server.CreateObject("JMail.Message")
      MyJMail.Logging = True
      MyJMail.From = "person@yourdomainname.com"
      MyJMail.FromName = "My Name"
      MyJMail.Subject = "Email Address"
      MyJMail.AddRecipient("person@yourdomainname.com")
      MyJMail.Body = "Form submitted with " & EmailAddress
      Dim SendValue
      SendValue = MyJMail.Send("mail.yourdomainname.com")
      'Response.Write(SendValue)
      'Response.End

      %>


      The email address has been written to file and an email has been sent.</p>
      <%
      else
      %>
      <form method="POST" action="email.asp">
      <input type="hidden" name="SubmitForm" Value="1"></p>


      Enter your email address.

      <input type="text" name="EmailAddress" size="20"></p>


      <input type="submit" value="Submit" name="B1"></p>
      </form>
      <%
      end if
      %>
      </body>
      </html>

      Comment


      • #4
        Re: Emails from Forms in front page

        Thank you Tony...

        Comment

        Working...
        X