mikecsom Absent Member.
Absent Member.
741 views

Draft messages left in trash when using API

Recently, I have discovered a problem when sending an email using the Groupwise API that the draft message created before delivery is placed in the Trash. Before it seemed that the draft message was emptied from trash. Has something changed (using versions 7 and 8)? Or, is there a setting I need to change in code?

Thanks,

Mike

Here is a code sample:

Set objGW = createobject("NovellGroupwareSession")
Set objAcct = objGW.Login()
objMsg = objAcct.Mailbox.Messages.Add()
objMsg.Subject = "Test"
objMsg.BodyText.PlainTest = "This is a test."
objMsg.Recipients.Add("my email address")
objMsg.Attachments.Add("path and filename")
objMsg.Send()

I receive the email, but I also get a draft in my trash without a recipient.
Labels (1)
0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: Draft messages left in trash when using API

On 9/12/2011 5:56 AM, mikecsom wrote:
>
> Recently, I have discovered a problem when sending an email using the
> Groupwise API that the draft message created before delivery is placed
> in the Trash. Before it seemed that the draft message was emptied from
> trash. Has something changed (using versions 7 and 8)? Or, is there a
> setting I need to change in code?
>
> Thanks,
>
> Mike
>
> Here is a code sample:
>
> Set objGW = createobject("NovellGroupwareSession")
> Set objAcct = objGW.Login()
> objMsg = objAcct.Mailbox.Messages.Add()
> objMsg.Subject = "Test"
> objMsg.BodyText.PlainTest = "This is a test."
> objMsg.Recipients.Add("my email address")
> objMsg.Attachments.Add("path and filename")
> objMsg.Send()
>
> I receive the email, but I also get a draft in my trash without a
> recipient.
>
>

That has always happened, afaik..
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.