• HB_SendMail & HTML format

    From Claudio H@21:1/5 to All on Wed Sep 6 17:49:23 2023
    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.
    Regards
    Claudio H

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Thu Sep 7 11:06:59 2023
    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)
  • From Claudio H@21:1/5 to All on Thu Sep 7 07:31:00 2023
    Thanks Enrico.
    Can you please post or send to my email a basic htm file to see the content? Regards
    Claudio H

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Thu Sep 7 16:42:31 2023
    Il 07/09/2023 16:31, Claudio H ha scritto:

    Thanks Enrico.
    Can you please post or send to my email a basic htm file to see the content?

    I used this for my test:

    <html>
    <body>
    <br>
    <br>
    <br>
    <br>
    <br>

    <center>
    <h1><b>This is a test</b></h1>
    </center>
    </body>
    </html>

    --
    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)