vbscript - ASP.Net Environment.NewLine stops working half way through a script? -
i'm using script construct email, , half way through newlines quit working. don't see errors, nor can when it's executed.
here code:
message = message & "zoning selections -" & environment.newline & environment.newline
message = message & "standard report: " & request.querystring("chklist0") & environment.newline message = message & "summary zoning report: " & request.querystring("chklist1") & environment.newline message = message & "executive summary: " & request.querystring("chklist2") & environment.newline message = message & "zip report: " & request.querystring("chklist3") & environment.newline message = message & "custom report - individual products: " & request.querystring("chklist4") & environment.newline message = message & "certificate of occupancy: " & request.querystring("chklist5") & environment.newline message = message & "building code violation: " & request.querystring("chklist6") & environment.newline message = message & "code compliance violation: " & request.querystring("chklist7") & environment.newline message = message & "fire code violation: " & request.querystring("chklist8") & environment.newline message = message & "saftey code violation: " & request.querystring("chklist9") & environment.newline message = message & "condemnation report: " & request.querystring("chklist10") & environment.newline message = message & "property use: " & request.querystring("property_use") & environment.newline
and here output:
zoning selections -
standard report: yes summary zoning report: yes executive summary: yes zip report: yes custom report - individual products: yes certificate of occupancy: yes building code violation: yes code compliance violation: yes fire code violation: yes saftey code violation: yes condemnation report: yes property use: office
as can see, newline works until half way through, , prints on same line. (also, other newlines added file @ time ones printing correctly)
what missing?
edit
apparently plain-text formating of email break environment.newline line breaks rest of email when encounters line longer 40-50 character (i using outlook 2013).
my solution simple, switch html format , use
tags line breaks instead.
Comments
Post a Comment