Domino 9 und frühere Versionen > Administration & Userprobleme

Flexibele Signatur

(1/3) > >>

dertoaster:
Hallo @all,

habe folgenden Auftrag von meinem Chef bekommen:

Ist es möglich, wenn ich ein neues Memo öffne, dass ich dann eine Abfrage bekomme, z. B. "externe Mail" und "interne Mail"??

Über diese Abfrage soll gesteuert werden, dass bei internen Mails eine andere oder keine Signatur angehangen wird und für externe Mails, die vom Marketing vorgebene Siganatur angehangen wird.

Lässt sich das wie oben beschrieben überhaupt realisieren oder ist es so gar nicht machbar?

Gruß
Toaster

eknori:
Würde ich anders ( ohne zu programmieren )  lösen :
Erstelle einfach 2 Vorlagen (intern/extern) und erstelle die Memos entsprechend aus den Vorlagen.

;D

dertoaster:
Ja, da hast du schon recht, aber wie löse ich das, wenn ich eingehende Mails beantworte, inter, bzw. extern??

Gruß
Toaster

eknori:
Da würde mir jetzt spontan einfallen:
keine Vorlagen; eine neue Aktion, die in den "Send" Button aufgenommen wird, die dem User einen Dialog mit möglichen Signaturen öffnet, die dann an die Memo angehängt wird.

die einzelnen Signaturen würde ich als Vorlagen hinterlegen, um die ganze Sache flexibel und userbezogen zu gestalten.

Der Dialog zeigt den Namen der Vorlage an und nach der Auswahl wirde der Inhalt des RTF der Vorlage an das Rtf der Mail oder Antwort gehängt.

... etwa so

eknori:
Ich habe das hier mal in einer 4.6 Umgebung verwendet:


Submitted By:   Graham Wainwright
Title 4 Tip:   Mail Template update for Auto Stationery
Category:   Script
 
      
Description:   If a user creates a piece of stationery called "Signature" then all new mail memo's should have that stationary as its template. Used to customise an individual users mail.

Method
On the Postopen event of a new memo check for the existence of the Signature stationery, note case. If it exists then close current blank memo and open stationery.

Two additions to the mail template are required.

1. A new hidden view called Sigs.
2. Script added to the Postopen event in Memo form.
      
Code:  Sigs View selection:-
SELECT PostedDate = "" & $MessageType = "" & !(ExcludeFromView = "D")

One column called Subject:-
@If(@IsAvailable(IsMailStationery); MailStationeryName; Subject)

Postopen event in memo form:-

Sub Postopen(Source As Notesuidocument)
Set uidoc = source
Call EmailOpen
Dim sigitem As Variant
Dim rtitem As Variant
Dim workspace As New NotesUIWorkspace
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim collection As NotesDocumentCollection
Dim V As NotesView
Dim VDoc As NotesDocument
Dim doc As NotesDocument
REM If new doc then continue......................
If uidoc.isnewdoc Then
Else
Exit Sub
End If
REM If stationery doc then don't continue...............
Set V=db.GetView("(Sigs)")
Set VDoc = V.GetDocumentByKey("Signature")
If VDoc Is Nothing Then
Else
Call uidoc.close
Set uidoc = workspace.editdocument(True,Vdoc)
End If

End Sub

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln