Page 1 of 1

How to use html in body of PB mail?

Posted: Fri Jan 27, 2017 10:40 pm
by T4r4ntul4
Hi all,

I noticed you cant use html in body of the PureBasic mail. Are there any working solutions to this problem, working with version PB 5.50?

Any help is appreciated!

Re: How to use html in body of PB mail?

Posted: Sat Jan 28, 2017 12:13 am
by infratec
Hi,

the problem is the Content-Type which is used by PB:
Content-type: text/plain; charset=ISO-8859-1; format=flowed
For html it should be:
Content-type: text/html; charset=iso-8859-1
At the moment you have no chance to modify this.

Code: Select all

SetMailAttribute(0, #PB_Mail_Custom, "Content-type: text/html; charset=iso-8859-1")
Does not replace the original part. It adds a second one which is ignored (by Thunderbird)
So a new attribute is required:

Code: Select all

#PB_Mail_ContentType
Place a feature reuest, since Fred had already done some stuff for PB 5.60.

Bernd

Re: How to use html in body of PB mail?

Posted: Thu Jan 31, 2019 12:45 pm
by DoubleDutch
+1

Not being able to send html mail is a pain.

Re: How to use html in body of PB mail?

Posted: Thu Jan 31, 2019 1:17 pm
by Dude
+1, although I swear I used to be able to do this. Weird.