Asp.Net Form Mail Problem

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

  1. #1

    Default Asp.Net Form Mail Problem

    I have built an asp.net/vb.net form with nine text fields of which i have
    managed to validate effectively.
    However, am unable to get it to submitt the users input to my email address
    and redirect them to a thank you page.
    How can I achieve this goal?
    Please help.

    Art

    kabwatha Guest

  2. Similar Questions and Discussions

    1. Need help with Mail Form and ASP
      Can someone assist me in getting my contact form on my Flash site working. I have a name, email, phone and a comments field and I want to submit...
    2. Form to Mail
      Anyone familiar with this extension? I downloaded Form to Mail from HDW. I installed it, and then restarted Dreamweaver (I'm running Dreamweaver...
    3. mail to form php
      Greetings , i have been working on DW for a while now , and i have just discovered the magic of extensions =\ I got a Qustion though , Is there...
    4. Mail:Sender - HTML Mail with alternatives problem
      I'm trying to generate an HTML mail with text alternatives using the mail:sender module. As everybody can see below the message was created and...
    5. Mail-form problem
      Hello, I'm trying to make a mail-form with PHP. But the point is I want a function so the user can choose the receiver (adress) with a drop-down...
  3. #2

    Default Re: Asp.Net Form Mail Problem

    The following script is an example that will send a html email using the
    built in ASP.Net mail components. To include a form field all you need to do
    is write something like

    objMail.Body &= "Name:" & fieldid.text

    <script language="vb" runat="server">
    Dim objMail As New MailMessage
    objMail.From = "website@turtlebay.co.nz"
    objMail.To = "Louise@turtlebay.co.nz"
    objMail.Cc = "Turtle@valleybiz.net"
    objMail.Subject = "Online Booking Made"
    objMail.BodyFormat = MailFormat.Html
    objMail.Body = "<html>"
    objMail.Body &= "<head> "
    objMail.Body &= "<title>::::: Turtle Bay :::::</title>"
    objMail.Body &= "<meta http-equiv='Content-Type' content='text/html;
    charset=iso-8859-1'>"
    objMail.Body &= "</head>"
    objMail.Body &= "<body bgcolor='#FFFFFF' text='#000000'
    leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'"
    objMail.Body &= "<table border='0' cellspacing='0' cellpadding='0'
    width='100%'>"
    objMail.Body &= "<tr>"
    objMail.Body &= " <td width='315'><img
    src='http://www.turtlebay.co.nz/email/images/pics/logo.gif' width='315'
    height='108' alt='Turtle Bay'></td>"
    objMail.Body &= " <td>&nbsp;</td>"
    objMail.Body &= "</tr></table>"
    objMail.Body &= "<p>This is an automated email from the website. A
    new booking has been made by "
    objMail.Body &= FN & " " & LN & "</p>"
    objMail.Body &= "<p>Please log into the site and process the
    booking."
    objMail.Body &= "</body>"
    objMail.Body &= "</html>"
    SmtpMail.SmtpServer = "172.30.1.100" - enter the name of your SMTP
    server
    SmtpMail.Send(objMail)
    </script>

    To use this on a page you also need to add the following below the page
    declaration

    <%@ Import Namespace="System.Web.Mail" %>

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "kabwatha" <ak@creativeinterfaces.com> wrote in message
    news:d08ii4$4g6$1@forums.macromedia.com...
    > I have built an asp.net/vb.net form with nine text fields of which i have
    > managed to validate effectively.
    > However, am unable to get it to submitt the users input to my email
    address
    > and redirect them to a thank you page.
    > How can I achieve this goal?
    > Please help.
    >
    > Art
    >

    Paul Whitham TMM 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