![]() ![]() If you want to send a message to more than one person or copy or blind carbonĬopy the following may be of use to you. MailDoc.PostedDate=Now() 'Gets the mail to appear in 'Set up the embedded object and attachment and attachĪttachME.EMBEDOBJECT(1454, "", Attachment, MailDbName = Left$(UserName, 1) & Right$(UserName, 'can pass an empty string or using above password you 'You may or may not need this as for MailDBname with 'Get the sessions username and then calculate the mail 'Next line only works with 5.x and above. Set Session = CreateObject("Notes.NotesSession") 'Set up the objects required for Automation into lotus notesĭim UserName As String 'The current users notes nameĭim MailDbName As String 'THe current users notes mailĭim MailDoc As Object 'The mail document itselfĭim AttachME As Object 'The attachment richtextfileĭim EmbedObj As Object 'The embedded object String, BodyText As String, SaveIt As Boolean) Public Sub SendNotesMail(Subject As String, Attachment As String, Recipient As 'Requires that notes client is installed on the system. 'This public sub will send a mail and attachment if neccessary to the 'recipient as string, bodytext as string,saveit as Boolean) Sub SendNotesMail(Subject as string, attachment as string, Earlier versions required the call afterwards.Ĭan't seem to fathom out the reason for that. In later versions of notes API this task isĬarried out by the previous line. ("Attachment"), then try removing that line. If you get an error on the line MailDoc.CREATERICHTEXTITEM Certain versions of 4.x client handleĭifferently. Feel free to use this code, but if you do use it, please put a link from your site if you have one.ĭon't as many people have done blantantly rip it off and call it your own. Reason for this (the only thing I can think of is there is an error in the lotus Requires Lotus Notes Client 4.5.x or later is installed on yourĪs far as I can tell the Lotus Notes objectsĪll have to be late bound otherwise you get errors. This ORIGINAL piece of code shows you how to mail direct from Real wood furniture for any home at Caza.uk ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |