PDA

View Full Version : Form Code Help


jmk
02-25-2006, 11:43 AM
Hi I am trying to make an online form but I can't seem to make it send to my email address. I have used this code before and it has worked. I have changed my ISP since then to iinet and the website is hosted by BUR.ST.
Can you see what I am doing wrong?

<%
name=request.form("name")
name=request.form("email")


messagebody="<HTML><BODY>" & "<B>NAME:</B> " & name & "<BR>" & "<B>EMAIL ADDRESS:</B> " & email & "<BR>"
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Online Request"
objMessage.Sender = "jackie@multimedia.net.au"
objMessage.To = "jackie@multimedia.net.au"
objMessage.HTMLBody = messagebody
objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.m.iinet.net.au"
objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objMessage.Configuration.Fields.Update
objMessage.Send

response.redirect("www.multimedia.net.au")

%>

hughesmi
02-25-2006, 03:33 PM
Do you get an error? If so lets see them.

jmk
02-26-2006, 07:08 AM
Thanks for replying.
I found out that my host didn't support ASP.
So I found this php form but is coming up with the following error when I click on submit;

Forbidden
You don't have permission to access /formmail.php on this server.


--------------------------------------------------------------------------------

Apache/1.3.33 Server at www.multimedia.net.au Port 80

hughesmi
02-26-2006, 08:28 AM
I don't know much about php. But their will be an equivalent scrip from what you wrote in you first post. Try this link to see if it will help you.



http://www.christian-web-masters.com/articles/web_php-mail-form-2.html

jmk
02-26-2006, 08:56 AM
Thank you