...

View Full Version : ASP Form To Mail Script Needed



mumford
06-01-2007, 04:49 PM
Hi

I have searched for a decent asp form to email script, but cannot find one that is suitable. What I need is:

Email results to a specified email address (dont want this to be a hidden input for spam reasons)

A thankyou page

an error page (validation)

Does anyone know of any good ones?

thanks

graficus
06-01-2007, 05:08 PM
I'll join in the request. If I may add one more thing to it:
it would be great if it came with captcha!

@mumford: I've used Webassist Universal Email, which kinda works. I don't like it tho.
Most of the time I end up using FormsToGo (http://www.bebosoft.com/products/formstogo/)

westmatrix99
06-05-2007, 11:17 PM
I hope I can help here.:D
Use CDONTS or JMAIL it's FREE.:thumbsup:
CDONTS script:

<%
Dim objMail, objBody
Set objMail = CreateObject("CDONTS.Newmail")
objBody= "Some text" & vbCrLf & vbCrLf'/// Add your own message.
objBody=objBody &"Some text" & vbCrLf & vbCrLf
objMail.From = "your@email.com" '/// Change this to your email.
objMail.To = (rsrecordset.Fields.Item("emailfield").Value)'/// This bit inserts the email address of the person.
objMail.Subject= "Subject"'/// Add your subject.
objMail.Body=objBody
objMail.Send
Set objMail = Nothing
%>OR

<%
Dim myBody
Dim mySubject
myBody = "Some text"
mySubject = "Some text"
Dim myMail
Set myMail = Server.CreateObject ("CDONTS.NewMail")
myMail.From = "You@YourDomain.com"
myMail.To = "them@email.com"
myMail.Subject = mySubject
myMail.Body = myBody
myMail.Send
set myMail=nothing
%>

W3 Jmail:

<%
Dim Msg
Set Msg = server.createobject("JMail.Message")
'Msg.Logging = true 'Logging if needed
Msg.From = "email"
Msg.FromName = "Name"
Msg.Subject = "Subject"
Msg.ContentType = "text/html"
Msg.GetMessageBodyFromURL "http://www.webpage.com/pae.html" 'this will send the entire page
msg.AddRecipient "email" , "name"
'msg.AddRecipientBCC "email","name"
Msg.Send("servername")
Set Msg=Nothing
%>

westmatrix99
06-05-2007, 11:27 PM
Captcha we can add later, first get this script to work for you.
Cheers

graficus
06-07-2007, 09:38 PM
westmatrix99, why did we even bother.
Looks like this is one of those "ask and forget about it" posts.

westmatrix99
06-07-2007, 09:47 PM
True!
It seems that ASP web guys are worse than PHP web guys in responding, the only I say this is due to the third post I answered and no response.
No point in deleting that data as there is a ref for others, I guess.
Cheers



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum