Ask a Question related to Dreamweaver AppDev, Design and Development.
-
kabwatha #1
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
-
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... -
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... -
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... -
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... -
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... -
Paul Whitham TMM #2
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> </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...address> 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> and redirect them to a thank you page.
> How can I achieve this goal?
> Please help.
>
> Art
>
Paul Whitham TMM Guest



Reply With Quote

