Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Repost - Lotus Notes email from vfp
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Repost - Lotus Notes email from vfp
Miscellaneous
Thread ID:
00868800
Message ID:
00868800
Views:
84
Sorry for another post, but I haven't gotten anywhere, but wanted to provide a little more detail:

==================================================
l_attachment="C:\windows\temp\qdms\cert.pdf"
*Create the Notes object
SESSION=CREATEOBJECT("NOTES.NOTESSESSION")

m.mailfile=SESSION.GetEnvironmentString("MailFile",.T.)
m.MailServer=SESSION.GetEnvironmentString("MailServer",.T.)

DB=SESSION.GetDatabase(M.MailServer,m.mailfile)
DOC=DB.CreateDocument()
DOC.FORM="Memo"
DOC.Subject="Certificate"
DOC.Body="Attached is Certificate No. 999 as requested"
DOC.FROM=SESSION.UserName
DOC.CreateRichTextItem("Attachment")
DOC.EmbedObject(1454, "", l_Attachment, "Attachment")
DOC.SEND(.F.,recipients)
DOC.SAVE(.T.,.T.)
================================================
The program chokes on the line in bold type....and I can't figure out for the life of me why. I have verified that the attachment file has been created and exists.


Sure could use a hand on this one - I am "this close" to finishing this module!

Thanks.
Phil Thomas
http://phillipdthomas.com

Never let your energy or enthusiasm be dampened by the discouragements that must inevitably come.....
Next
Reply
Map
View

Click here to load this message in the networking platform