emailing a form in .net

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default emailing a form in .net

    I have a current form on my companies website that is a request for information
    form. it is down in vbscript .net I needed to add a dropdown list to the form
    and have but don't know how to send the value of the drop down list in the
    email: here is my code: Everything works fine except for the Quick tour date
    selected line. That is the line that is trying to send the data from the
    ddDate drop down list. How do I send that value? objMM.Body = 'At ' +
    DateTime.Now + ' Somebody requested a Demonstration from the Great Lakes
    Website ' & _ 'Their Information is Listed Below ' &
    vbCrLf & _
    '---------------------------------------' & vbCrLf & vbCrLf & _
    'Quick Tour Date Selected: ' + ddDate.SelectedItem & vbCrLf
    & _ 'Name: ' + txtName.Text & vbCrLf & _ 'Email
    Address: ' + txtEmail.Text & vbCrLf & _ 'Phone: ' +
    txtPhone.Text & vbCrLf & vbCrLf & _ 'Agency Name and
    Address:' & vbCrLf & _ txtAgency.Text & vbCrLf & _
    txtAddress.Text & vbCrLf & _ txtCity.Text + ', ' +
    txtState.Text + ' ' + txtZip.Text & vbCrLf & vbCrLf & _
    'Questions or Comments:' & vbCrLf & _ txtComments.Text &
    vbCrLf & vbCrLf & _TextText

    Balds Guest

  2. Similar Questions and Discussions

    1. Emailing a form using PHP5
      I'm trying to send and email from a form page to me using PHP5. When I click send I get the folowing message. Warning: mail() : SMTP server...
    2. Emailing from Dreamweaver
      I am currently formatting an email announcment in Dreamweaver then opening in Frontpage and using the send to function to email the page. I need to...
    3. Emailing Form Data
      I have a form set up to called data and when the submit button is pressed the data is emailed to me. That works fine. I am now trying to use the...
    4. FDF emailing
      I have been reading everything in here about this but still need 1 question answered. I know that you cannot email back a form with Acrobat reader...
    5. emailing from trigger
      Does anybody have a suggestion for the best way to send email from a trigger? Is it even possible? I'd like to send a notification everytime a...
  3. #2

    Default Re: emailing a form in .net

    > How do I send that value? objMM.Body = 'At ' +
    > DateTime.Now + ' Somebody requested a Demonstration from the Great Lakes
    > Website ' & _ 'Their Information is Listed Below '
    &
    > vbCrLf & _
    > '---------------------------------------' & vbCrLf & vbCrLf &
    _
    > 'Quick Tour Date Selected: ' + ddDate.SelectedItem
    You need to be more specific. Probably:

    ddDate.SelectedItem.value.tostring

    or

    ddDate.SelectedItem.text.tostring

    -Darrel


    darrel Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139