Absender einer EMail ändern

  • Hallo,


    ich möchte per Agent eine EMail verschicken. Der Absender soll aber bei jeder Email gleich sein, sprich nicht der aktuelle Nutzer soll der Unterzeichner der Mail sein. Habe das From- Feld und ein paar andere geändert, doch bei externen Empfängern (z.B. gmx) steht der aktuelle User als Empfänger.
    Hat jemand ne Idee, was da geändert werden muss?


    Code:
    strPrincipal = Replace(docTemplate.SwFrom(0),"<<email_resp>>",docPersonal.InternetAddress(0))
    Call .appendItemValue("Principal", strPrincipal)
    Call .appendItemValue("From", strPrincipal)
    Call .appendItemValue("AltFrom", strPrincipal)
    Call .appendItemValue("SendFrom", strPrincipal)
    Call .appendItemValue("INetFrom", strPrincipal)
    Call .appendItemValue("tmpDisplaySentBy", strPrincipal)
    Call .appendItemValue("tmpDisplayFrom_Preview", strPrincipal)
    Call .appendItemValue("DisplaySent", strPrincipal)

  • Meiner Erfahrung nach müßte das Feld Principal eigentlich ausreichen. Versuch doch mal, AppendItemValue mit ReplaceItemValue zu ersetzen. In der Hilfe steht bei AppendItemValue nämlich folgendes:


    If the document already has an item called itemName$, AppendItemValue does not replace it. Instead, it creates another item of the same name, and gives it the value you specify.