Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GW Message Cancel and Save in VB

Status
Not open for further replies.

kjweber

Programmer
Jul 23, 2003
5
US
This is the code I have currently but all I want to do is right before the message is sent, I would like it to display to the user so they change anything or cancel and save it in "Work in Progress". Or in the code somewhere I would like to cancel and save it without the user having to do anything. I cant figure out how to do that, Please help.

AutoEMail = True
If goGWSession Is Nothing Then
Set goGWSession = CreateObject ("NovellGroupWareSession")
End If
If psMailTask = "Task" Then
Set oMessage = goGWSession.Login.WorkFolder.Messages.Add("GW.Message.Task")
Else
Set oMessage = goGWSession.Login.WorkFolder.Messages.Add("GW.Message.Mail")
End If

oMessage.Recipients.Add (psTo)
oMessage.Subject = psSubject
oMessage.BodyText = psMessage

If Not psAttachment = "" Then oMessage.Attachments.Add (psAttachment)
If psMailTask = "Task" And psReturns Then
oMessage.NotifyWhenOpened = 1 ' Send an EMail
oMessage.NotifyWhenCompleted = 3 ' Send an EMail and Notification
End If
If psSendIt Then
Set oSentMsg = oMessage.Send
If oSentMsg Is Nothing Then
AutoEMail = False
End If
End If
Set goGWSession = Nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top