Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FrontPage / ASP / Send Email problems

Status
Not open for further replies.

christywarner

Programmer
Apr 14, 2003
32
0
0
US
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=&quot;GET&quot; action=&quot;sendmail.asp&quot;>
<input type=&quot;text&quot; name=&quot;address&quot; size=&quot;60&quot;>
<input type=&quot;submit&quot; value=&quot;Submit&quot;>
</form>

CODE FROM &quot;SENDMAIL.ASP&quot; FILE:

<html>
<script language=&quot;vb&quot; runat=&quot;server&quot;>
<%address=request.form(&quot;address&quot;)%>
<%
set conn=server.createobject(&quot;ADODB.connection&quot;)
conn.open &quot;server=autoaudit.brinkster.net; uid=autoaudit;pwd=baxter;&quot;
%>
<%
dim msg as string
set mail=server.createobject(&quot;persits.mailsender&quot;)
mail.host=&quot;autoaudit.brinkster.net&quot;
mail.from=&quot;info@autoaudit.com&quot;
mail.fromname=&quot;Brinkster Server&quot;
mail.addaddress &quot;cwarner@autoaudit.com&quot;
mail.subject=&quot;Testing email&quot;
msg=&quot;testing!&quot;
mail.body=msg
mail.send

response.write(&quot;Address is: &quot; & address)

%>
</script>
</html>

THANKS!!
christy.
 
I wanted to also mention that I just want to send
the form results via email -- the form results just
happen to be a person's email address. So I want the email to be generated from Brinkster.Com - not the
user's email. Make sense? I've tried other code
I&quot;ve found online, but no luck yet.... thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top