Create a page with the appropriate fields you need to collect.
Post that form to the page you have (dundas.txt)
on the dundas.txt page, build the email up in a variable, and add it to the
objEmail.HTMLBo dy property. I assume there's also an objEmail.Body property
as well for those who don't use html.
So...For example
Page1.asp
<form method=post action=Dundas.a sp>
<p>What's your name<input name=fname></p>
<p>What's your email address<input name=email></p>
<p><input type=submit value=Send></p>
</form>
Dundas.asp
<%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>
<%
Dim objEmail 'stores a Mailer control object
Dim strPath 'stores path to a directory we create at same level as this ASP
page
Set objEmail = Server.CreateOb ject("Dundas.Ma iler") 'Mailer object
'specify the recipient of this message
objEmail.TOs.Ad d "yourATemailadd ress.com"
'specify the subject of the email
objEmail.Subjec t = "Sent from the web page"
'specify the sender of the message
objEmail.FromAd dress = Request.Form("e mail")
'specify an SMTP Relay server. This increases the speed and reliability of
the operation
objEmail.SMTPRe layServers.Add Request.Form("S MTP")
Dim sBody
sBody="The user's name is " & Request.Form("f name")
'initialize the HtmlBody property, we'll throw a header into it
objEmail.HTMLBo dy = "<Html><Hea d></Head><Body>" & sBody
objEmail.SendMa il
%>
"Raphael Gluck" <iwish i could tell you @alas blame the spammers> wrote in
message news:O0******** ******@TK2MSFTN GP12.phx.gbl...
Hi all
I am still finding my feet creating a website in ASP, and i'm trying to
get to grips with users providing feeback to my site.
my webhosts have the dundas mailer installed, and i am trying to get it to
work for me.
does it work in conjuction with regular html? can i add a <form> and text
fields? and then will all that get sent with the page?
I have a little script but i dont know how to modify it
http://www.tripak.me.uk/dundas.txt
which when i am done with, must change to and .asp extension.
but where do i add it form content?
Say i want to ask the person viewing the page, to send me feedback, Just
to add a textfield, and some html asking for their name, how do i go about
that?
I hope someone can help me
thanks
Raphael