![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | VB Script using a MailTo: form collection I have written a ASP page to send a mail message for a form collection. My Form tag is <Form action="mailTo:someone@xxxxxx" ? Subject="Send Mail" Method="POST" name="Email" enctype="text/plain"> I am creating the body of the message and displaying it in a TextArea and it views fine. I create the TextArea data using a script that will have multiple lines of text pulled from a database such as: <% strBody=DataValue1 &vbCRLF&_ strBody=strBody & DataValue2 &vbCRLF&_ strBody=strBody & DataValue3 &vbCRLF&_ strBody=strBody & DataValue4 &vbCRLF %> However when I submit the form to send the mail it ignores the line feed when the mail is received. I've tried using chr(13) & chr(10) or just chr(10) but nothings appears to work. Anyone have any ideas?? |
My System Specs![]() |
| | #2 (permalink) |
| | RE: VB Script using a MailTo: form collection Hello Bob, Why are you continuing the line at the end of each string? <% strBody=DataValue1 &vbCRLF&_ strBody=strBody & DataValue2 &vbCRLF&_ strBody=strBody & DataValue3 &vbCRLF&_ strBody=strBody & DataValue4 &vbCRLF %> try this <% strBody=DataValue1 & VbCrLf strBody=strBody & DataValue2 & VbCrLf strBody=strBody & DataValue3 & VbCrLf strBody=strBody & DataValue4 & VbCrLf %> Dave "Bob" wrote: Quote: > I have written a ASP page to send a mail message for a form > collection. > > My Form tag is <Form action="mailTo:someone@xxxxxx" ? > Subject="Send Mail" Method="POST" name="Email" enctype="text/plain"> > > I am creating the body of the message and displaying it in a TextArea > and it views fine. > > I create the TextArea data using a script that will have multiple > lines of text pulled from a database such as: > > <% > strBody=DataValue1 &vbCRLF&_ > strBody=strBody & DataValue2 &vbCRLF&_ > strBody=strBody & DataValue3 &vbCRLF&_ > strBody=strBody & DataValue4 &vbCRLF > %> > > However when I submit the form to send the mail it ignores the line > feed when the mail is received. I've tried using chr(13) & chr(10) or > just chr(10) but nothings appears to work. > > Anyone have any ideas?? > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| .NET CGI script has inadequate permissions to receive form data ??? | .NET General | |||
| mailto | Vista mail | |||
| mailto | Vista mail | |||
| mailto | Vista mail | |||
| HowTo: Create Windows Form without Stopping the Script from Processing | PowerShell | |||