christywarner
Programmer
Hi,
I have a webpage created in FrontPage 2000,
and I want my users to be able to type in
their email address (fieldname=ADDRESS) so it goes in a
"guest book" - either appended to a .txt file
or as part of an email body sent to me at
info@autoaudit.com (my website is autoaudit.com).
Here is my code so far and it hasn't worked yet:
CODE TO CREATE THE FORM/BUTTON TO ENTER EMAIL:
<form method="GET" action="sendmail.asp">
<input type="text" name="address" size="60">
<input type="submit" value="Submit">
</form>
CODE FROM "SENDMAIL.ASP" FILE:
<html>
<script language="vb" runat="server">
<%address=request.form("address"%>
<%
set conn=server.createobject("ADODB.connection"
conn.open "server=autoaudit.brinkster.net; uid=autoaudit;pwd=baxter;"
%>
<%
dim msg as string
set mail=server.createobject("persits.mailsender"
mail.host="autoaudit.brinkster.net"
mail.from="info@autoaudit.com"
mail.fromname="Brinkster Server"
mail.addaddress "cwarner@autoaudit.com"
mail.subject="Testing email"
msg="testing!"
mail.body=msg
mail.send
response.write("Address is: " & address)
%>
</script>
</html>
THANKS!!
christy.
I have a webpage created in FrontPage 2000,
and I want my users to be able to type in
their email address (fieldname=ADDRESS) so it goes in a
"guest book" - either appended to a .txt file
or as part of an email body sent to me at
info@autoaudit.com (my website is autoaudit.com).
Here is my code so far and it hasn't worked yet:
CODE TO CREATE THE FORM/BUTTON TO ENTER EMAIL:
<form method="GET" action="sendmail.asp">
<input type="text" name="address" size="60">
<input type="submit" value="Submit">
</form>
CODE FROM "SENDMAIL.ASP" FILE:
<html>
<script language="vb" runat="server">
<%address=request.form("address"%>
<%
set conn=server.createobject("ADODB.connection"
conn.open "server=autoaudit.brinkster.net; uid=autoaudit;pwd=baxter;"
%>
<%
dim msg as string
set mail=server.createobject("persits.mailsender"
mail.host="autoaudit.brinkster.net"
mail.from="info@autoaudit.com"
mail.fromname="Brinkster Server"
mail.addaddress "cwarner@autoaudit.com"
mail.subject="Testing email"
msg="testing!"
mail.body=msg
mail.send
response.write("Address is: " & address)
%>
</script>
</html>
THANKS!!
christy.