Il 07/09/2023 02:49, Claudio H ha scritto:
Hi
I understand that it is possible to send an HTML email with HB_SendMail(), where cBody must contain the filename of the HTML message to send.
I'll appreciate if someone can attach a simple example including a simple HTML file to evaluate it.
FUNCTION MAIN()
LOCAL cFrom := "
e.m.giordano@emagsoftware.it"
LOCAL cServer := "smtps.aruba.it"
LOCAL cTo := "
e.m.giordano@emagsoftware.it"
LOCAL cSubject := "Messaggio di prova"
LOCAL cMessage := "Test.htm"
LOCAL aAttach := NIL
LOCAL cSender := NIL
LOCAL cUser := "myuser"
LOCAL cPassword := "mypassword"
LOCAL aCC := NIL
LOCAL lHtml := NIL
LOCAL cPort := "465"
LOCAL lNotification := NIL
LOCAL lSSL := .T.
? HB_SENDMAIL( cServer, VAL( cPort ), cFrom, cTo, aCC, , cMessage, cSubject, , cUser, cPassword, , , , .T., , , , , lSSL )
INKEY( 0 )
RETURN NIL
--
Enrico Maria Giordano
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)