-
Topic
-
Listed the script I combined to get an orginal message to one single recipient. The message arives, but the attachment is not there.
Who can help.
Thanks
‘
‘ Insert your comments here
‘
Sub Main(Client, GWEvent)
Dim objDraft
Dim objEmail
Dim objRecipient
Dim Archief
Dim MessagesID(1)‘ Create a draft email message
Set objDraft = GroupWise.Account.MailBox.Messages.Add(4)‘ Add a single recipient test@test.com
Archief = “test@test.com”
objRecipient = objDraft.Recipients.Add(Archief,,0)‘ Add some properties
Set Msg = Client.ClientState.CommandMessage
MessagesID(1)= Msg.MessageIDobjDraft.Subject = “Please Reply”
objDraft.BodyText.PlainText = “Please send reply to this message.”
Call GroupWise.ItemAttachmentAdd(“X00″,115,MessagesID(1),”Test”)‘ Send the email by calling the send method
Set objEmail = objDraft.Send‘ Display the message ID
MsgBox(“Thank You”)End Sub
- You must be logged in to reply to this topic.