Copy link to clipboard
Copied
Hi everyone.
Happy halloween...
My sendmail.asp sript is sending mail, hurray!
Trouble is, I only get pieces of info, Arrgh!
Emailed end:
Subject: name
Type: Text
And question in the email tex box.
The sendmail page code:
your name:
"name"
your email:
"email"
enter your question
"question"
Sendmail.asp script:
.Subject = "name"
.TextBody = "question"
Thank you to everyone for reading this post.
Sabby
Copy link to clipboard
Copied
Try this pretty simple script and will return an organized email. Point your form to what ever you call this mail script to process it....
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
Dim myMail
Dim myBody
myBody = "Contact Name: " & request.form("contact_name") & vbcrlf & "Email Address: " & request.form("email") & vbcrlf & "Contact Number: " & request.form("contact_number") & vbcrlf & "Date of Event: " & request.form("date") & vbcrlf & "Your Interest: " & request.form("party_zone") & request.form("outdoor_rental") & vbcrlf & "Party Wishes: " & request.form("party_wishes")
Set myMail = Server.CreateObject("CDO.Message")
myMail.From = request.form("email")
myMail.To = "youremail@youremail.com"
myMail.bcc = "additionalemails@email.com"
myMail.Subject = "<<<<Title of Email>>>>>"
myMail.TextBody = myBody
myMail.Send
set myMail = nothing
Response.Redirect("url of poage to be re-derected to.")
%>