General discussion

Locked

Tell me How:Feedback to my email box

By dmittri2000 ·
My name is Orjinta Chidubem, I am an application developer that resides in Nigeria. Please help me out.

i am developing a personal web site whereby visitors to my site will send a feed back to my email box. I am developing the web application with Dreamweaver 4. It has feedback (.html) page that contains a form that the user can enter his/her name, email address and comments -this feedback page redirects to an asp page and an asp page that contains the code that sends the information enteredby the user to my email box and displays. " 'User', your message has been sent". But this does not work. Please Tell how i will overcome this.

The code in the asp page is shown below:

<%@ Language="VBScript" %>
<html>
<head>
<title>Feedback Information</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#336699" text="#000000">
<%
dim str(3)
dim I
dim myMail


dim strgetTime
set params=request.QueryString
I=1
for each pValue in params
str(I)=params(pValue)
I=I+1
next
strgetTime = FormatDateTime(Now(),vbLongDate)

Set myMail = Server.CreateObject("CDONTS.NewMail")
myMail.To = "dmittri2000@yahoo.com"
myMail.From = str(2)
myMail.Subject = "This is what i have to say " & strgettime
Body = "Mail From:" & str(1)
Body = Body & str(2)
myMail.Body = Body
myMail.Send
Set myMail = nothing

response.Write("<center><h2>" & str(1) & "<h2><center>")

%>


<p align="center"><strong><font face="Verdana, Arial, Helvetica, sans-serif">YOUR FEEDBACK HAS
BEEN RECEIVED</font></strong></p>
<p align="center"><strong><font face="Verdana, Arial, Helvetica, sans-serif">THANK YOU FOR VISITING
OUR SITE.</font></strong></p>

<p> </p>
</body>
</html>

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Tell me How:Feedback to my email box

by MadestroITSolutions In reply to Tell me How:Feedback to m ...

Well,
How can we help you if you dont even tell us what the error is?

This code seems to be correct at first glance (although it can be improved IMHO), which leads me to believe this might be a server side problem. E-mail me with more details (if possible, give me the site address so I can look at it myself) and I will help you out. PLEASE DO NOT REJECT MY ANSWER until you e-mail me and I help you out. (Some people reject answers simply because there is no other option in Tech Republic)

My e-mail address is : Juanr@richfx.com

Good Luck!

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums