943,202 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Marked Solved
  • Views: 203
  • ASP RSS
Aug 3rd, 2010
0

E-mail form using ASPX

Expand Post »
Is there any way of making an e-mail form using ASP/ASPX?

I am limited in what I can do since I'm not a root administrator on the website this is for. The site uses Contensis as it's content management system so if there is some way of doing it via that without editing the source code that would be appreciated. I have tried the "Contact List Subscriber" option under "E-mail management" but I'm getting a "No connection could be made because the target computer actively refused it" message. I can't contact the administrator of the website until next week so I am unable to ask him how to do it.

What I want this form to do is just send details from the form to a specific e-mail address. The current system here requires people to either phone or e-mail the call centre and ask to be put on the waiting list and then the people in the call centre puts it onto the system which is quite inefficient.

If you need more details, just ask.
Similar Threads
Reputation Points: 21
Solved Threads: 30
Posting Whiz
Borzoi is offline Offline
319 posts
since Oct 2006
Oct 4th, 2010
0
Re: E-mail form using ASPX
1.<!--#include file="connection.asp"-->
2.<%
3.openConn()
4.email = request("email")
5.response.Write(email)
6.''response.End()
7.if trim(email) <> "" then
8.
9.sql= "select password from candidate where email = '" & replace(email,"'","''") & "'"
10.''response.Write(sql)
11.''response.End()
12.set rs = createobject("adodb.recordset")
13.rs.open sql,conn
14.''response.End()
15.if not rs.eof then
16.set msg = createobject("CDO.Message")
17.msg.to = email
18.''response.Write(email)
19.msg.from = "tranlinh.nmt@gmail.com"
20.msg.subject = "123456"
21.' pass for mail:tranlinh.nmt@gmail.com
22.msg.TextBody = "Hello. Your password is " & rs("password")
23.response.Write rs("password")
24.''response.End()
25.msg.Send
26.response.End()
27.end if
28.rs.close
29.end if
30.%>




star sports online
Reputation Points: 10
Solved Threads: 2
Newbie Poster
Michel88 is offline Offline
5 posts
since Sep 2010
Oct 4th, 2010
0
Re: E-mail form using ASPX
Thank you but I no longer need it. I should have closed the thread so I apologise.
Reputation Points: 21
Solved Threads: 30
Posting Whiz
Borzoi is offline Offline
319 posts
since Oct 2006
Oct 7th, 2010
0
Re: E-mail form using ASPX
Hey no problem dear friend....i am just for your help. NO need to say this word apologies.


music live online
Reputation Points: 10
Solved Threads: 2
Newbie Poster
Michel88 is offline Offline
5 posts
since Sep 2010

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Upload CSV
Next Thread in ASP Forum Timeline: ASP Button Reopens Model Form





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC