Old 16-11-2007, 15:23   #1 (permalink)
herbalhaze
Registered User
 
Join Date: Nov 2007
Posts: 18
Any idea why this wont work?

Hi, just added ASP email form to site and it sends me an email (hooray!) it even has the subject line in...
However, there is no info other than that. it is blank. (ie no senders details)

Here is the script if anyone would love the challenge of combing through it and showing me where i am obviously going wrong!
...Wayne...
  Reply With Quote
Old 16-11-2007, 15:25   #2 (permalink)
herbalhaze
Registered User
 
Join Date: Nov 2007
Posts: 18
.... oops, And the script that i mentioned;

HTML

<span class="style6">Email Form</span><br />
<form method="POST" action="form_ac.asp">
<td><span class="style7">Your Name:</span></td>
<td><input name="name" size="40" maxlength="50"></td>
<td><span class="style7">Your Email:</span></td>
<td><input name="email" size="40" maxlength="50"></td>
<td valign="top"><span class="style7">Your Message<span class="style10"></span></span></td>
<td><textarea cols="60" input name="message" rows="6"></textarea>
<td colspan="2"><div align="center"><center><p><input type="submit" value="Submit"
name="Submit"> </p>
</center></div></td>

ASP

<%Dim oMail
On Error Resume Next
Set oMail = server.CreateObject("MEMail.Message")
oMail.MailFrom = "info@me.co.uk"
oMail.MailFromDisplayName = "info@me.co.uk"
oMail.ContentType = "text/html;"
oMail.MailTo = "info@me.co.uk"
oMail.Subject = "WEB FORM REPLY"
oMail.MessageBody = "<html><body><h1>"name","email","message"</h1></body></html>"
oMail.SendMessage
Set oMail = Nothing
If Err=0 Then
Response.redirect ("thankemail.html")
Else
Response.redirect ("emailerror.html")
End If
%>
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8