signature for the eMail

Hallo, ich möchte gerne beim eMail-Export eine Signatur mit geben.
Hier mein Code:
ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.SendAsMail”, “1”)
'ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.Mail.To”, z_emailadresse)
ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.Mail.ShowDialog”, “1”)
ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.Mail.SendResultAs”, “text/html”)
'ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.Mail.Body:application”, “RTF”)
'ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.Mail.SendResultAs”, “html”)
ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.File”, W_belegart & BELEG01!BELEGNR & “.pdf”)
'ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.Mail.Subject”, W_belegart & BELEG01!BELEGNR & “.pdf”)
ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.Path”, mod_allg.Pfad_fuer_im_ex)
ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.Quiet”, “1”)
ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.SendAsMailAvailable”, “0”)

            '24.06.2025
            'ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, "PDF", "Export.Mail.Provider", "XMAPI")
            ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, "PDF", "Export.Mail.Provider", "MSMAPI")
            
            '24.06.2025 Signatur übergeben
            ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, "PDF", "Export.Mail.SignatureName", "Fiba")
            'ende
            
            
            'ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, "PDF", "Export.Mail.Body", z_emailtext)
            ret% = ListLabel1.LlPrintStart(LL_PROJECT_LIST, pfad, LL_PRINT_EXPORT)
            ret% = ListLabel1.LlPrintSetOptionString(LL_PRNOPTSTR_EXPORT, "PDF")

Wenn ich den Provider XMAPI verwende, dann kommt zwar die Signatur, aber halt nur in Text-Format, also ohne Grafik und Formatierung.

Was ist an meinem Code falsch?

vielen lieben Dank für eine Antwort.

mfg
EFI

Hallo Erwin,

parallel zu der Antwort, die du über deinen Case erhalten hast, auch hier im Forum eine Antwort auf deine Frage.

Es scheint noch die Option “ExportMailHtmlBody” zu fehlen. Diese muss aber zusätzlich zu den bereits genutzten Optionen gesetzt werden, da ansonsten die Nachricht als reine Textnachricht mit dem unter ExportMailBody angegebenen Text versendet wird.

.NET Beispiel:

LL.ExportOptions.Add(LlExportOption.ExportMailSendResultAs, "text/html");
LL.ExportOptions.Add(LlExportOption.ExportMailHtmlBody, "<html><head></head><body>Test</body></html>");

Im Blogbeitrag Signatur-Unterstützung für das eMail-Versandmodul - List & Label ist das Einbinden einer Signatur gut veranschaulicht. Natürlich nur anhand von .NET im Beispiel, daher müsstest du noch die Anpassungen an VB6 übernehmen.

Probiere es bitte einmal mit dieser zusätzlich Option aus, ob das hier schon weiterhilft.

Mit freundlichen Grüßen

Leon