Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - VB Script using a MailTo: form collection

Reply
 
Old 04-14-2009   #1 (permalink)
Bob


 
 

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 SpecsSystem Spec
Old 04-14-2009   #2 (permalink)
hb21l5


 
 

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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46