473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

ASP email form not getting all of message

I created a form where a person comes in fills it out and the form is then emailed to back to me. Works well EXCEPT - if some fills out the "story" area with more than 500 words, the email gets cut off. Here is the code:
Expand|Select|Wrap|Line Numbers
  1. <%
  2. set mail=server.CreateObject("CDONTS.NewMail")
  3. mail.From = "myemail@email.com" ' 
  4. mail.To = "myemail@email.com" ' 
  5. mail.Subject = "Scary Story Contest"
  6.  
  7.  
  8. Body = "Patron's name: " & Request ("patronsName") & vbCrlf & vbCrlf
  9.  
  10. Body = Body & "Patron's Library Card: " & Request("card") & vbCrlf & vbCrlf
  11.  
  12. Body = Body & "Patron's Phone: " & Request("patronsPhone") & vbCrlf & vbCrlf
  13.  
  14. Body = Body & "Patron's Email: " & Request("txtEmail") & vbCrlf & vbCrlf
  15.  
  16. Body = Body & "Patron's Library: " & Request("library") & vbCrlf & vbCrlf
  17.  
  18. Body = Body & "Patron's Age Group: " & Request("age") & vbCrlf & vbCrlf
  19.  
  20. Body = Body & "Story Title: "& vbCrlf & Request("storyName") & vbCrlf & vbCrlf
  21.  
  22. Body = Body & "Story: "& vbCrlf & Request("story")
  23.  
  24.  
  25. mail.Body = Body
  26.  
  27. mail.BodyFormat = 1 ' 0 = HTML, 1 = Plain
  28. mail.MailFormat = 1 ' 0 = MIME, 1 = Text
  29. mail.Importance = 1 ' 0 =High, 1 = Medium, 2 = Low
  30.  
  31. mail.Send
  32. set mail=nothing 
  33.  
  34. %>
Aug 20 '07 #1
1 1135
Ok I forgot to change the form method from get to post. Works now.
Aug 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: bojanraic | last post by:
Hi! I recently started playing with Python CGI, and I was happy that my basic input-name--print-hello-name CGI form example worked, so I thought I should advance to somew\hat more complicated...
4
by: dmiller23462 | last post by:
So here's my problem.....I need to set up different email distributions based on which option in the following Select form has been chosen....For instance if "Putaway" is chosen it needs to email...
6
by: Maxelcat | last post by:
Hi - getting very frustrated. I would really appreciate some help here! trying to send email via a form from my website. Have to use .asp and I have been round and round the houses trying to get...
4
by: Ken D. | last post by:
I have an asp page that collects data on referrals. The user inputs the information and selects the rep to receive the referral. My data is being saved to a backend database (SQL) and the user is...
9
by: Jerim79 | last post by:
I am no PHP programmer. At my current job I made it known that I was no PHP programmer during the interview. Still they have given me a script to write with the understanding that it will take me a...
5
by: mantrid | last post by:
Up to the other day I have not bothered protecting my php script on my feedback form against email injection. Howerver, i have had a spammer using it to insert email addresses as cc: bc: into my...
2
by: staryeyes47 | last post by:
Hi, I am creating a contact page for a my website and I am having a bit of trouble. I have created the form in flash, and am using a php file to send the email to myself. The form works OK, but...
20
by: alice | last post by:
Can anyone tell me why this code won't work? I've saved it as mail.php, and have a form on a web page with action="mail.php" in the html. I've gotten this to work before on other pages I've worked...
1
by: sld87 | last post by:
Hi guys, (Newbie member here!) Having some serious difficulty getting our php email system working after implementing an image captcha to stop the hundreds of bots spamming it. I may as well...
4
by: zufie | last post by:
I have a main form containing a command SEND button that prompts an email form to pop up. The email address(es) that are supposed to appear on the email form are those corresponding to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.