Re: Web.Mail sending only part of my message

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



re:
>> Line breaks ?
> That seems to have been it.
> I just replace the readline loop with ReadToEnd and now it works fine.

Great!


Juan
====
"tshad" <tscheiderich@xxxxxxxxxxxxxxx> wrote in message
news:Oi%23qaTsyFHA.1040@xxxxxxxxxxxxxxxxxxxxxxx

>>> "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
>>> news:%23W6Cu1qyFHA.2540@xxxxxxxxxxxxxxxxxxxxxxx
>>>> re:
>>>>> It mentions that you can only have 1000 characters per line and when I look at my
>>>>> view source, it is about 4000 characters.
>>>>
>>>>> How do I tell it not to do that (or can I)?
>>>>
>>>> Line breaks ?
>>>
>>> How do I put line breaks in?
>>>
>>> In DW, it doesn't show as a continuous line. It is all nice and formatted and
>>> indented.
>>>
>>> Somewhere it must be getting stripped, but not all the lines are stripped - which is
>>> curious.
>>>
>>> I look at a page and it might normally be a couple hundred lines that are showing up
>>> as 7 lines.
>>>
>>> In DW, I have this:
>>>
>>> <tr>
>>> <td>
>>> <td>
>>> <tr>
>>>
>>> in viewsource of the email, I have this:
>>>
>>> <tr><td><td><tr>
>>>
>>> (But not always)
>>
>> I think I figured it out.
>>
>> In my code, to send it out I read it in - make a couple of changes to the template
>> (such as Title, Salutation etc) and then send it.
>>
>> I just realized I am doing the following:
>>
>> objStreamReader = File.OpenText(MapPath("\automail\new_account_automail.htm"))
>> strInput = objStreamReader.ReadLine()
>> while strInput <> nothing
>> strBuffer = strBuffer & strInput
>> strInput = objStreamReader.ReadLine()
>> end while
>> objStreamReader.Close
>>
>> The ReadLine (if I am not mistaken), reads UP TO the line break and doesn't read it in.
>>
>> So it is bring stripped, in essence. Not sure why a couple of lines have breaks in
>> them.
>>
>> But I assume that is the problem.
>
> That seems to have been it.
>
> I just replace the readline loop with ReadToEnd and now it works fine.


.