Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lotus Notes - attach a file
Message
From
21/01/2004 08:44:52
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00868702
Message ID:
00868942
Views:
22
Phil,

This is the code I use:

Procedure email_from_lotus
lParam recipient, em_subject, em_attachment, em_body_text

Session = CreateObject("Notes.Notessession")
db = Session.GetDatabase("", "bookmark.nsf")
Doc2 = db.CreateDocument()
Doc2.Form = "memo"
Doc2.Subject = em_subject

rtitem = Doc2.CreateRichTextItem("body")
rtitem.AppendText(em_body_text)
If Len(AllT(em_attachment)) > 1 Then && Is there an attachment?
rtitem.EmbedObject(1454, "", em_attachment)
EndIf

*e1 = AllT(recipient)
Doc2.Send(.F., AllT(recipient))

EndProc
Previous
Reply
Map
View

Click here to load this message in the networking platform