Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Sendmail.asp nearly home?

Guest
Nov 01, 2009 Nov 01, 2009

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

TOPICS
Server side applications

Views

494
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 02, 2009 Nov 02, 2009

Copy link to clipboard

Copied

LATEST

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.")
%>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines