Page 1 of 1

Formatting of emails via ASINET

Posted: Wed Apr 07, 2010 10:01 pm
by Cliff Wiernik
We use ASINET to send out emails. Even if we put in CRLF's, the body of the email appears as one long single paragraph.

Is there any way to format emails easily so you can put in blank lines, or space text into columns, etc.

Cliff.

Re: Formatting of emails via ASINET

Posted: Thu Apr 08, 2010 7:00 am
by rdonnay
Your emails are being sent as HTML.
You either need to format them as TEXT or do the following:

Code: Select all

cBody := Strtran(cBody,Chr(13)+Chr(10),'<br>')

Re: Formatting of emails via ASINET

Posted: Thu Apr 08, 2010 11:33 am
by Cliff Wiernik
Thanks, we had the contenttype of text/html without even knowing it. Was from some code I copied. What is the type for straight text. We did it in html anyway because we needed a columnar table which with even text is not real code as text form in many email readers use a proportionately spaced font that would not line up anyway.

Use the dchtmltable command to build the table.

Cliff.

Re: Formatting of emails via ASINET

Posted: Thu Apr 08, 2010 1:35 pm
by bwolfsohn
Cliff Wiernik wrote:Thanks, we had the contenttype of text/html without even knowing it. Was from some code I copied. What is the type for straight text. We did it in html anyway because we needed a columnar table which with even text is not real code as text form in many email readers use a proportionately spaced font that would not line up anyway.

Use the dchtmltable command to build the table.

Cliff.
Cliff,

You might want to consider using BOTH the CRLF and the html < br > .. some email clients might display differently..

Brian

Re: Formatting of emails via ASINET

Posted: Fri Apr 09, 2010 10:27 pm
by Cliff Wiernik
Thank for the suggestion. Did not test how a non-html email client would respond.

Cliff.