SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2007
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Send email via drop down

    Hi,

    I'm new to asp and need to be able to email a form depending on what option the user selects from a drop down list.

    So for example, if they need to email sales the user chooses that option from a drop down and the form they fill in will be sent to sales@example.com. For returns the form will be sent to returns@example.com etc.

    I have searched sitepoint and google but not really found any helpful info.

    Any help would be appreciated.

    Thanks!
    Jon

  2. #2
    SitePoint Guru
    Join Date
    Jun 2007
    Posts
    690
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    in your ASP file:

    Code ASP:
    dim AddressTo
    AddressTo = Trim(Request.form("ddlist_name_goes_here"))
    AddressTo = AddressTo & "@Example.com"


Bookmarks

Posting Permissions

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