Page 1 of 1
html body in e-mails
Posted: Thu Jan 31, 2019 4:44 pm
by infratec
Hi,
it would be possible if we can replace the Content-type of the packet.
For that a new mail attribute would be nice:
#PB_Mail_ContentType
then we are able to replace the original one with:
Code: Select all
SetMailAttribute(0, #PB_Mail_ContentType, "Content-type: text/html; charset=iso-8859-1")
See also here:
viewtopic.php?f=13&t=67605
Bernd
Re: html body in e-mails
Posted: Thu Jan 31, 2019 10:05 pm
by Dude
It's been requested before:
viewtopic.php?f=3&t=65351
And a POP3 lib to go with it would be great.

Re: html body in e-mails
Posted: Fri Feb 01, 2019 1:57 am
by normeus
+1
However; I don't think it is as easy as just adding setMailAttribute, "Content-type: text/html; charset=iso-8859-1" or Fred would've done it.
On Sep of 2018 I was creating a PHP email program and I realized that PB's way of adding attachments had to be modified in order for it to be able to send HTML. I completely forgot exactly what the problem was but, if you have time to investigate see this hack:
viewtopic.php?p=527558#p527558.
Norm.
Re: html body in e-mails
Posted: Fri Feb 01, 2019 7:53 am
by infratec
If you can replace the content-type, you can do what you want.
Ok, you have to know how to do. But that's not the problem
If you can not replace the content-type ... you can do nothing.
Re: html body in e-mails
Posted: Tue Jun 04, 2019 6:50 pm
by DoubleDutch
This is a much needed feature.
Re: html body in e-mails
Posted: Wed Jun 05, 2019 1:18 am
by BarryG
+1
Re: html body in e-mails
Posted: Thu Mar 12, 2020 10:41 pm
by DoubleDutch
It's a shame that this still isn't possible, it would make all the difference to the mail library.
Re: html body in e-mails
Posted: Thu Mar 12, 2020 10:56 pm
by BarryG
DoubleDutch wrote:It's a shame that this still isn't possible, it would make all the difference to the mail library.
We need a native POP3 library as well, so PureBasic can be used to make a full email client.
Re: html body in e-mails
Posted: Thu Mar 12, 2020 10:57 pm
by DoubleDutch
+1