Permabanned
I want a basic form on my site with just a name and text box for people to send some feedback through email.
Using this...
This doesnt generate any errors but neither do any emails appear in my inbox.
Anything im missing here? Im assuming my web space providor (Blueyonder) have this CDO component installed as i dont get a error when its fired off. The response.writes are just there to make sure the form controls are being picked up correctly which they are.
Using this...
Code:
<html>
<body>
<form action="Test.asp" method="post">
<h3>This form sends an e-mail.</h3>
Name:<br>
<input type="text" name="fullname" size="20">
<br>
<textarea rows="10" cols="30" name="bodytext">
</textarea>
<br><br>
<input type="submit" value="Submit">
</form>
<%
dim FromName
dim MainText
FromName = Request.form("fullname")
MainText = Request.form("bodytext")
if FromName <> "" Then
response.write("Hello " & Request.form("fullname") & "<br>")
response.write(Request.form("bodytext"))
Set myMail=CreateObject("CDO.Message")
myMail.Subject="New Email"
myMail.From= FromName
myMail.To="[email protected]"
myMail.TextBody=MainText
myMail.Send
set myMail=nothing
end if
%>
</body>
</html>
This doesnt generate any errors but neither do any emails appear in my inbox.
Anything im missing here? Im assuming my web space providor (Blueyonder) have this CDO component installed as i dont get a error when its fired off. The response.writes are just there to make sure the form controls are being picked up correctly which they are.