Dim session As New NotesSessionDim db As NotesDatabase
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set doc = New NotesDocument( db )
doc.Form = “Memo”
doc.From = sales@test.com
doc.SendTo = customername
doc.BlindCopyTo = formadmins
doc.Subject = “Sample Subject Here”
Call doc.Send( False )
The attachment name question… I want to create a unique attachment name based on the form# and increment field or version number (e.g. 1.0, 2.0…). Here’s my current line…
filename=replacesubstring(doc.formnum(0),“/”,“_”)
filename is then used in following script to create filename:
xmldoc.store= “d:\lotus\domino\data\pdf" & filename & vernum &”.pdf"
The output should be (example)… CUS5555-1.0.pdf. Does the above look correct?