SetMailBody: support for HTML and Plain Text

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
MarcNL
User
User
Posts: 34
Joined: Mon Oct 25, 2010 4:04 pm

SetMailBody: support for HTML and Plain Text

Post by MarcNL »

Currently only a plain text part can be added as a e-mail body.

Please add a possibility to add a HTML body, but also allow a combination of both.
User avatar
mhs
Enthusiast
Enthusiast
Posts: 101
Joined: Thu Jul 02, 2015 4:53 pm
Location: Germany
Contact:

Re: SetMailBody: support for HTML and Plain Text

Post by mhs »

+1
T4r4ntul4
Enthusiast
Enthusiast
Posts: 118
Joined: Tue Mar 04, 2014 4:15 pm
Location: Netherlands

Re: SetMailBody: support for HTML and Plain Text

Post by T4r4ntul4 »

+1

(every example on this forum with html support on email doesnt work anymore...)
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: SetMailBody: support for HTML and Plain Text

Post by Keya »

i thought html email was just plaintext but, well, as html? ie. doesn't that mean it's already supported?

[edit] ooh, i see now the difference is in the actual email header, not the body:
Plaintext: Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Html: Content-Type: multipart/alternative; boundary="----=_NextPart_000_0123_0123456.123456"
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: SetMailBody: support for HTML and Plain Text

Post by infratec »

Code: Select all

#PB_Mail_ContentType
as SetMailAttribute is needed.
Look here:

http://www.purebasic.fr/english/viewtop ... 13&t=67605

Bernd
swhite
Enthusiast
Enthusiast
Posts: 726
Joined: Thu May 21, 2009 6:56 pm

Re: SetMailBody: support for HTML and Plain Text

Post by swhite »

Hi

I would like to see HTML supported in the eMail body as we send lots of emails for transactions receipts etc. that require HTML to display logos and formatted tables with different colors. So having PB support HTML emails would be very useful.

Thanks,
Simon
Simon White
dCipher Computing
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: SetMailBody: support for HTML and Plain Text

Post by DoubleDutch »

+1

It needs this.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: SetMailBody: support for HTML and Plain Text

Post by Dude »

+1
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: SetMailBody: support for HTML and Plain Text

Post by RSBasic »

+1
Image
Image
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: SetMailBody: support for HTML and Plain Text

Post by IdeasVacuum »

+1
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Seymour Clufley
Addict
Addict
Posts: 1233
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: SetMailBody: support for HTML and Plain Text

Post by Seymour Clufley »

+1
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: SetMailBody: support for HTML and Plain Text

Post by davido »

+1
DE AA EB
User avatar
the.weavster
Addict
Addict
Posts: 1537
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: SetMailBody: support for HTML and Plain Text

Post by the.weavster »

+1
Karellen
User
User
Posts: 82
Joined: Fri Aug 16, 2013 2:52 pm
Location: Germany

Re: SetMailBody: support for HTML and Plain Text

Post by Karellen »

+1
Stanley decided to go to the meeting room...
User avatar
DeanH
Enthusiast
Enthusiast
Posts: 223
Joined: Wed May 07, 2008 4:57 am
Location: Adelaide, South Australia
Contact:

Re: SetMailBody: support for HTML and Plain Text

Post by DeanH »

+1

I have used some code from the forum that worked with older versions of PB but does not seem to work any more. I have not been able to work out why yet.
Post Reply