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.HTMLBody 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.asp>
<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="VBSCRIPT" 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.CreateObject("Dundas.Mailer") 'Mailer object
'specify the recipient of this message
objEmail.TOs.Add "yourATemailaddress.com"
'specify the subject of the email
objEmail.Subject = "Sent from the web page"
'specify the sender of the message
objEmail.FromAddress = Request.Form("email")
'specify an SMTP Relay server. This increases the speed and reliability of
the operation
objEmail.SMTPRelayServers.Add Request.Form("SMTP")
Dim sBody
sBody="The user's name is " & Request.Form("fname")
'initialize the HtmlBody property, we'll throw a header into it
objEmail.HTMLBody = "<Html><Head></Head><Body>" & sBody
objEmail.SendMail
%>
"Raphael Gluck" <iwish i could tell you @alas blame the spammers> wrote in
message news:O0**************@TK2MSFTNGP12.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