• Creator
    Topic
  • #4029
    rfaude
    Participant

    Hi,

    in the programmer’s guide there is a sample to send a email without a UI. This works fine if you are NO working offline (Remote Mailbox).
    when i write myself a mail in this way, the mail appears in the outgoing folder, not in the incoming folder.
    If i use the GW-Standard UI to send a mail it directly appears in the incoming folder.

    Where is the different and how can i do it like GW, but without UI?

    Thanks.

    Ralf

  • Author
    Replies
  • #6894
    Support 1
    Participant

    I believe that in Remote mode, you will need to explicitly Send and Receive before the new message appears in your inbox.

    To automate this you could try either of the following code snippets (to be executed after sending your message). Note that this code is untested.

      ' Send and Retrieve #1
      if GroupWise.Account.Remote then
        call GroupWise.CachingRefresh
      end if
    
      ' Send and Retrieve #2
      if GroupWise.Account.Remote then
        call GroupWise.RemoteSendRetrieveDlg
      end if
    

    I hope this helps.

    Advansys Support

    #6896
    rfaude
    Participant

    Hi,

    i tried the version for the remote mailbox

    ' Send and Retrieve #2
      if GroupWise.Account.Remote then
        call GroupWise.RemoteSendRetrieveDlg
      end if
    
    

    It works Yes and No.
    Yes – I see the mail in the incoming folder
    No – the Send/Retrieve Dialog comes up.

    Is there a way to suppress the dialog?

    Thanks for assistance …

    Ralf

    #6897
    Support 1
    Participant

    I do not know of a way to suppress the Send/Retrieve dialog.

    You may wish to experiment with recording in an applet the steps taken by GroupWise itself in Remote mode, as follows.

    • Go to Applets on the GroupWise main menu, and select Start Recording.
    • Send a test message via the GroupWise user interface.
    • Go to Applets on the GroupWise main menu, and select Stop Recording.

    The recorded applet may expose GroupWise Object or Token API methods that you need for Remote mode.

    I hope this helps.

    Advansys Support

    #6899
    rfaude
    Participant

    Hi,

    oops i find a way …

      ' Refresh the Mailbox Items
      if GroupWise.Account.Remote then
        call GroupWise.Refresh
      end if
    

    Sometimes it is so simple 😉

    Thanks again …

    Ralf

    #6898
    Support 1
    Participant

    Looks like we both learned something. Thank you for sharing your simple discovery!

    Advansys Support

    #6895
    rfaude
    Participant

    You welcome :-))

    Ralf

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.