GoyaPtyLtd / BaseElements-Plugin

FileMaker Pro plugin used for BaseElements to provide file, dialog and XSLT functions.
http://www.goya.com.au/baseelements/plugin
154 stars 51 forks source link

Send Mail HTML not working - base-elements-plugin/4.2.6 #214

Closed vsc55 closed 1 year ago

vsc55 commented 1 year ago

Hi,

I have been testing the option to send emails in HTML format and it seems that it is not being sent correctly. This would be the code used:

BE_SMTPSend ( $mail.from ; $mail.to; $mail.subject ; "" ; "" ; "" ; "" ; $mail.body_html )

As you can see the part of the fourth normal text has been left blank so that the html code can be used. The mail that arrives is blank and the following information arrives in the header of the mail:

Return-Path: <*@*>
X-Envelope-To: *@*
Message-ID: <*@*>
X-Spam-Status: No, hits=0.0 required=5.0
    tests=AWL: -0.089, BAYES_00: -1.665, MISSING_MID: 0.497,
    TOTAL_SCORE: -1.257,autolearn=no
X-Spam-Level: 
X-Footer: Y2VyZWJlbHVtLm5ldA==
Received: from localhost ([127.0.0.1])
    by * with ESMTP
    for *@*;
    Sun, 19 Mar 2023 18:12:38 +0000
Date: Sun, 19 Mar 2023 18:12:38 GMT
Content-Type: text/plain
From: HelpDesk <*@*>
Subject: Example
Mime-Version: 1.0
X-Mailer: libcurl-agent-base-elements-plugin/4.2.6 ( 04020600 )
To: <*@*>

You can see Content-Type keeps sending it as text/plain.

Thanks and regards.

vsc55 commented 1 year ago

Sorry, my mistake. Everything works ok.