PROCsendmailattach(SMTP$,From$,To$,"","",Subject$,ReplyTo$,Message$,Attach$)
I managed to make this work beautifully. DEF FN_Compose_Mail
LOCAL message$
message$="Beste "+Voornaam1_1$+","+LF$+CRLF$+"U hebt zich ingeschreven voor ons tornooi in de "\
\+Reeksnaam$+" punten"+LF$+CRLF$\
\+"De wedstrijd voor de eerste ronde wordt gespeeld op"+LF$+CRLF$+" "+Timeslot$+LF$+CRLF$\
\+"Uw partner: "+Voornaam1_2$+" "+Naam1_2$+LF$+CRLF$+"Uw tegenstanders: "\
\+Naam2_1$+" "+Voornaam2_1$+" - "+Naam2_2$+" "+Voornaam2_2$+LF$+CRLF$+"Mvg,"+LF$+CRLF$\
\+"De tornooileiding"+LF$+CRLF$+"Tel: GSM 0474.449.309"+CRLF$+"Mail: info@borsbeektennisclub.be"
=message$
DEF FN_Compose_Plain
Plain$="Beste,"+CRLF$+\
\"dit is de*tekst *voor de test"+CRLF$+\
\"Eddy"
= Plain$
REM----------------------------------------------------------
DEF FN_Compose_Html
Html$="<body text=""#000000"" bgcolor=""#FFFFFF"">"+CRLF$+\
\"Beste,<br>"+CRLF$+\
\"<br>"+CRLF$+\
\"dit is de<b> tekst </b>voor de test<br>"+CRLF$+\
\"<br>"+CRLF$+\
\"Eddy<br>"+CRLF$+\
\"</body>"
=Html$