www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Server-Side Development > ASP

    ASP Discussion and technical support for using and deploying Active Server Pages.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 02-21-2003, 02:35 AM
    geek_grrrl geek_grrrl is offline
    Registered User
     
    Join Date: Feb 2003
    Location: Sydney Australia
    Posts: 40
    Submit form via email

    Hellow I'm an absolute novice in terms of ASP. The only thing I know about it is that it might help me to activate a form I've designed so that the info in the form is sent to me via an email.

    The form lives here - http://www.jetsupport.com.au/origina.../bookings.html

    A guy who worked on a previous version of the site put together the code below. Does anyone know (a) if it will work and (b) how I can attach the code to the "submit" button, if indeed this is what I need to do to get the whole show on the road.

    <%
    For Each x In Request.Form
    message = message & x & ": " & Request.Form(x) & CHR(10)
    Next
    set smtp=Server.CreateObject("Bamboo.SMTP")
    smtp.Server="smtp.iprimus.com.au"
    smtp.Rcpt="info@originalbackpackers.com.au"
    smtp.From="Email"
    smtp.FromName="FirstName" & "LastName"
    smtp.Subject="Response to my form"
    smtp.Message = message
    on error resume next
    smtp.Send
    if err then
    response.Write err.Description
    else
    Response.redirect ("http:// redirect.com")
    end if
    set smtp = Nothing
    %>

    Kissies
    __________________
    Geek_grrrl
    Reply With Quote
      #2  
    Old 03-02-2003, 10:20 PM
    geek_grrrl geek_grrrl is offline
    Registered User
     
    Join Date: Feb 2003
    Location: Sydney Australia
    Posts: 40
    Dazed, lost and confused

    Um, yup I guess so. To tell you the truth I'm totally lost as I don't even know how to get the code (from either post above) working in synch with the "Submit" button on the page containing my form http://www.jetsupport.com.au/origina.../bookings.html

    If anyone can point me in the right direction I'd be mighty appreciative.

    Cheers
    __________________
    Geek_grrrl
    Reply With Quote
      #3  
    Old 03-03-2003, 07:33 PM
    geek_grrrl geek_grrrl is offline
    Registered User
     
    Join Date: Feb 2003
    Location: Sydney Australia
    Posts: 40
    No, they haven't told me anytying. What I've got so far is this crazy code (see my initial post) from some guy (now MIA) who knows the owners of the business I'm building the site for.

    Since I know nada about making forms work, and the ISP for the site is being less than helpful, my plan was to try and get some kind soul to help me attach the crazy code I have to the submit button on my form (http://www.jetsupport.com.au/origina.../bookings.html).

    I'm not really sure where to go from here?!?!

    Perhaps I should ditch the code the mystery guy wrote and start again? If so, a pointer in terms of a CGI script that might work would be a beautiful thing. For some reason I have it in my heas that a CGI script will be easier to implement. Am I just deluded??

    Any ideas would be much appreciated.

    Kissies
    __________________
    Geek_grrrl
    Reply With Quote
      #4  
    Old 03-04-2003, 12:21 AM
    celebguy_dv
    Guest
     
    Posts: n/a
    http://banners.dollarmachine.com/pic/2014000/hal001.gif
    Reply With Quote
      #5  
    Old 03-04-2003, 01:43 AM
    celebguy_dv
    Guest
     
    Posts: n/a
    http://banners.dollarmachine.com/pic/2014000/hal001.gif
    Reply With Quote
      #6  
    Old 03-04-2003, 03:49 PM
    laTortuga laTortuga is offline
    Registered User
     
    Join Date: Dec 2002
    Posts: 23
    Why not CDONTS?

    Hello

    Wouldn't you be better off using CDONTS, perhaps with some JavaScript to validate the user's e.mail address?

    laTortuga
    Reply With Quote
      #7  
    Old 03-05-2003, 12:23 AM
    RaiN RaiN is offline
    Registered User
     
    Join Date: Mar 2003
    Location: Canada
    Posts: 16
    Dave ur avatar kicks ass...
    Reply With Quote
      #8  
    Old 03-05-2003, 06:27 AM
    Ribeyed's Avatar
    Ribeyed Ribeyed is offline
    NHS Software Developer
     
    Join Date: Jan 2003
    Location: Dundee, Scotland
    Posts: 1,142
    hi,
    Quote:
    Originally posted by Dave Clark
    Just because they support ASP and IIS does not mean that they support CDONTS or CDOSYS.
    You absolutly right my host supports ASP and ASP.NET but doesn't support CDONTS or CDOSYS beacuse of security issues concerning the use of these objects. Instead i use the Persits mail object.

    Code:
    set Mail = Server.CreateObject("Persits.MailSender")
    Best thing is to contact your host and ask which mail object you can use. They are basically all the same syntax so once you find out which one you can use then is shouldn't be a problem providing you with working code.
    __________________
    ----------------------------------
    ASP.NET, VB.NET, B2B Applications, .NET Framework, T-SQL, Windows 2003 Server, SQL Server, AJAX, ASP, SEO, CSS, Mobile Technologies, Bluetooth, Wi-Fi.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 06:00 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.