Formatting of emails via ASINET

This forum is for general support of Xbase++
Post Reply
Message
Author
Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Formatting of emails via ASINET

#1 Post 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.

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Formatting of emails via ASINET

#2 Post 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>')
The eXpress train is coming - and it has more cars.

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Formatting of emails via ASINET

#3 Post 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.

bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: Formatting of emails via ASINET

#4 Post 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
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Formatting of emails via ASINET

#5 Post by Cliff Wiernik »

Thank for the suggestion. Did not test how a non-html email client would respond.

Cliff.

Post Reply