Another Empty New Mail after 'NewMail' token

Hi there,
Here's my code to send an email via the GroupWise client form.
vGWCmd := CreateOleObject('GroupWiseCommander');
vGWCmd.Execute('MainWindowShow()', sRet);
// Let the time to GW to open main form
Application.ProcessMessages;
Sleep(1000);
vGWCmd.Execute('NewMail()', sRet);
vGWCmd.Execute('TextSetTo("' + sSendTo + '"; True)', sRet);
vGWCmd.Execute('TextSetSubject("' + sSubject + '"; True)', sRet);
vGWCmd.Execute('TextSetMessage("' + sBody + '"; False)', sRet);
All works fine but after the user clicks the Send button, a brand new
empty mail is created and popup. If I understand well Tokens, it is like
a message (sent using API SendMessage).
Maybe tokens are mixed up and that's why another new mail form is created
after email is sent. Is there an equivalent and more predictable way to
send tokens (a kind of PostMessage)?
Thank you for reply,
Rej Cloutier

I think there is a setting in the GW client that automatically creates a
new mail form upon send. Look under tools, options, environment, open
new view on send
[email protected] wrote in
news:aE_Rf.2319$[email protected]:
> Hi there,
>
> Here's my code to send an email via the GroupWise client form.
> ////////////////////////////////////////////////////////////
> vGWCmd := CreateOleObject('GroupWiseCommander');
> vGWCmd.Execute('MainWindowShow()', sRet);
>
> // Let the time to GW to open main form
> Application.ProcessMessages;
> Sleep(1000);
>
> vGWCmd.Execute('NewMail()', sRet);
> vGWCmd.Execute('TextSetTo("' + sSendTo + '"; True)', sRet);
> vGWCmd.Execute('TextSetSubject("' + sSubject + '"; True)', sRet);
> vGWCmd.Execute('TextSetMessage("' + sBody + '"; False)', sRet);
> ////////////////////////////////////////////////////////////
>
> All works fine but after the user clicks the Send button, a brand new
> empty mail is created and popup. If I understand well Tokens, it is
> like a message (sent using API SendMessage).
>
> Maybe tokens are mixed up and that's why another new mail form is
> created after email is sent. Is there an equivalent and more
> predictable way to send tokens (a kind of PostMessage)?
>
> Thank you for reply,
>
> Rej Cloutier
>
Regards,
Michael Risch
Developer SysOp 3

Similar Messages

  • Native Mail app unable to get new mail after updating to iOS 5.0.1

    Just after I installed 5.0.1 (OTA) I've noticed that native ios mail client is unable to get new mail messages anymore. I have three seperate mail accounts (Gmail, Hotmail, iCloud) connected to my iPad2 and none of them works after this software update. All I get is three seperate error messages (Cannot Get Mail) one after another for each account, same kinda of messages as you get once you try to open your Mail app with no internet connection, but this time it's not an issue as my iPad is connected to my home WiFi which is working just fine.
    I've tried to restart my device, checked mail settings, made sure all the passwords are ok by typing them once again for all the accounts and I managed to get confirmation that they're ok with no difficulties using the same device.
    All other apps that uses internet connection seems to be working with no problems as well.
    Screenshot: http://i4.photobucket.com/albums/y103/pauliaK/9c9c6d0c.jpg
    Any ideas?

    Once I got new mail messages to each mailbox it seems that everything got back to normal.

  • Mail not checking for new mail after sleep

    Mail will not check for new mail when waking from sleep unless I log off and back on first. I tried quitting Mail, which works once in a while. I tried putting all Accounts back online, which works occasionally. But most often nothing works except logging off. Must I change to another mail program, or is there a better solution.

    After trying various solutions, I found that the fault was not with Apple Mail or my iMac but with Airport taking time to warm up after sleep. I switched to an Ethernet connection instead and it works fine now

  • Mail won't get new mail after a while

    Running Mail app on my Powerbook on OS 10.5.8. I use this as my work computer. More and more frequently I find that Mail is not retrieving my messages after being open for a while. The main account is a gmail IMAP account. I am also running Mail Act-On and MailTags, which are key utilities in my workflow.
    I try clicking on Get New Mail, or "Synchronize IMAP Account," and taking all accounts offline and then taking them online, but these do not help.
    Quitting and relaunching Mail sometimes helps, but not always! Is there anything else I should try? This is making me crazy!

    I think you should open the Mail folder -- Home/Library/Mail -- and locate the file named MessageUidsAlreadyDownloaded3 and delete it, after having Quit Mail. Open each POP account folder in the Mail folder, and make sure there are no other files of similar name within these folders.
    Deleting this file, and relaunching Mail will result in its downloading whatever messages remain on the server, and may give you some duplicates, but this import file will be renewed and fresh.
    Ernie

  • Mail very slow to get new mail after Lion upgrade

    After I upgraded from Snow Leopard to Lion my Mail application has become very sluggish. It takes ages to show new mail from my Gmail account. It seems to spend ages downloaded messages. If I access my Gmail via Safari it is virtually instant.
    Any advice most welcome!

    I had a similar problem and it was related to my wireless network settings.  The Lion upgrade had created a second wireless network setup named Apple 888.b1 on my airport/time capsule.  I deleted that second phantom one so it was just back to the one that I had setup and everything is fine again.
    So if your broadband connction is wireless you might check the wireless settings and see if a second network setup was created.

  • When I create a new mail or reply to a mail, where is the new window?

    Suddenly, I can´t reply or create a new mail because when I do, the new window never appears! When I look in "Windows", I can see a list with all the empty "New Mail". But where are they? Help! Have I by mistake made some strange settings?
    MacBook Pro   Mac OS X (10.1.x)  

    Look for additional information that may be available in the form of error messages written to the Console:
    1. Open /Applications/Utilities/Console.
    2. From the File menu, choose either Open Console Log, or Open System Log, or both, so that Console displays the contents of both system.log and console.log.
    3. Reproduce the problem and look at the bottom of the Console windows for messages that might be written there as a result.
    <hr>
    Do you have any Mail plug-ins? In the Finder, go to each of the following folders (if they exist). What do you see there?
    /Library/InputManagers/
    /Library/Mail/Bundles/
    ~/Library/InputManagers/
    ~/Library/Mail/Bundles/
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

  • Getting new mail & keychain

    can someone tell me if there's a way to get Mail to not ask me for my keychain password when I try to check for new mail after starting up the application? It's kind of a pointless annoyance for me...thanks

    what directory is it in? for example, i'm used to going into /Users/myaccount/.ssh and deleting known_hosts even though the directory .ssh is not listed
    is this something similar?
    matt
    EDIT: nevermind, good old spotlight picked it up for me. that worked for the keychain problem. is there a similar preference file for my connection to the linux box via AFP, so that I can reset it?
    thanks,
    matt

  • Can't read old mail after new Tiger install

    I recently installed Tiger (and archived my old system) as an upgrade from 10.3.9. Since then, I can't read old messages in Mail. The original messages are deleted from my isp server once the messages are downloaded by Mail. When I open any message in Mail received before I insttalled Tiger I see, where one would normally see the body of the message, the following:
    "The message from [email protected] concerning “Your receipt from Apple Store, xxxxx” has not been downloaded from the server. You need to take this account online in order to download it."
    When I attempt to reply to one of these messages, I can't type anything into the body of the message.
    I am online when this happens. I see no "icons" (ie an lightening bolt) next to my inbox; everything appears to be normal. I, also, have approximately 20 gb of free space on my hard drive.
    Any suggestions as to how I might retrieve or open old messages? Thanks.

    The conversion from Mail 1.x to Mail 2.x is broken. Take a look at the following thread to better understand the problem:
    Help! "You need to take this account online in order to download it."
    More specifically, if this is a POP account, the following procedure should allow you to fix the Inbox problem. A similar procedure should allow you to fix other mailboxes that might also be affected:
    1. Quit Mail if it’s running.
    2. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to fix the problem. You can do this in the Finder by dragging the folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is stored.
    3. Create a new folder on the Desktop and name it however you wish (e.g. Inbox Old). It doesn’t need to have an .mbox extension.
    4. In the Finder, go to ~/Library/Mail/POP-username@mailserver/INBOX.mbox/.
    5. Move the files mbox and Incoming_Mail out of INBOX.mbox, into the Inbox Old folder just created on the Desktop. These files contain all the messages that were in the mailbox before the upgrade to Tiger, and maybe even some messages that had been deleted. mbox is the most important. Incoming_Mail may or may not be present.
    6. Move any strangely-named Messages-T0x... folders to the Desktop (not into the Inbox Old folder). These folders are to be deleted after fixing the problem. They are temporary folders created during an import or an indexing process, and Mail should have deleted them when done. Their presence is a clear indication that something didn’t work as expected. If you’ve been using Mail after the conversion and have already tried to fix the problem by rebuilding the mailbox or something like that, they might contain messages that are neither in Messages proper nor in the mbox file, so keep them around until the problem is fixed.
    7. Move everything else within INBOX.mbox, except the Messages folder, to the Trash.
    The result of the above should be that INBOX.mbox contains the proper Messages folder only, and the Inbox Old folder on the Desktop contains the mbox and Incoming_Mail (if it exists) files only. Now, proceed as follows:
    8. Open Mail.
    9. The account’s Inbox should properly display in Mail as many messages as *.emlx files are in ~/Library/Mail/POP-username@mailserver/INBOX.mbox/Messages/. If that’s not the case, select the mailbox in Mail and do Mailbox > Rebuild.
    10. In Mail, do File > Import Mailboxes, choose Other as the data format, and follow the instructions to import the Inbox Old folder that’s on the Desktop.
    As a result of doing the above, some messages may be duplicated now. Andreas Amann’s Mail Scripts has a Remove Duplicates script that you may find useful.
    Do with the imported mail whatever you wish. You may move the messages anywhere you want and get rid of the imported mailboxes afterwards.
    If all is well and you don’t miss anything, the files on the Desktop can be deleted, although you may want to keep them for a while, just in case.
    Take a look at the following article (also referenced in the thread I mentioned at the beginning of this post) to learn what you might have done before upgrading to minimize the risk of this happening, and what you may do after fixing the problem to avoid similar issues from happening in the future. DON’T do now what the article suggests, though, as that would make things worse in the current situation:
    Overstuffed mailbox is unexpectedly empty
    Ask for any clarifications or if you need further assistance.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • Empty mails after backingup

    Put a new hdd in my MacBook. Easy.
    Backed up everything with de Leopard DVD. Easy.
    So fas so good.
    But now I have empty mails in Mail. Al the mail headers are shown, so the mails are there somewhere but there is no text in the body when I open them.
    I did rename the envelope index in the mail library, due to advise i read in this forum. That made it even worse. Befor that I had the problem with only some of the older mails. Now it is with all of them.
    When I look in time machine is shows 300 of the 1700 mails that are in the inbox.
    What to do? I'm at the beginning of desperate.

    I had exactly the same problem as yours.
    After the new HDD full system restore from the Time Machine backup, I saw no e-mail in the new Mail.app.
    But I could find all the e-mail in Time Machine, so I restore every mailbox one by one through Time Machine.
    Now they all are recovered, but the RSS stored in Mail.app are still missing.

  • Hi please help! After setting up a new mail account my wifi button has greyed out. I've tried rebooting it ie turning off and on but no joy. I'm a complete technophobe and have no idea what to do next. I can receive emails but am unable to reply. HELP PLS

    Please can someone help a total technophobe?!!! I have recently set up a new mail account and since I've done that my wifi button has greyed out. Not sure what happened as I had help from my daughter. She doesn't think that she did anything wrong as has been an iPhone user since day one!! She's at work now so I'm totally lost. Please help. Many thanks.

    it's' an issue on 4S..... here same problem, even after restore the firmware.... wifi and bt are lost....

  • A new round of Junk Mail after installing Safari Beta 3.0

    In the days since installing and religiously using Safari 3.0 beta on my MacBook Pro with 10.4.9, I am seeing a huge increase in Mail being sent to the Junk folder via Automatic Junk mail filtering. I have not changed any Mail settings. This is mail from sites that I get mail from all the time without it going to Junk Mail Folder. So something has changed, drastically.
    I do have the mail Junk filter set to trust my ISP Junk Mail headings (Earthlink). I will turn it off and see if that changes anything. Perhaps Earthlink is doing something new.
    But if not Earthlink, I can only wonder if anything changed due to Safari 3.0 install.
    Anyone else having this type of new problem?
    MacBook Pro 15 inch   Mac OS X (10.4.9)  

    I've had exactly the same problem with junk mail after installing Safari 3. No other recent changes.
    So far, retraining on received e-mails does not seem to be taking; good e-mails keep going into junk folder.
    MacBook Pro C2D   Mac OS X (10.4.9)  

  • Can't Access old email after new mail comes in

    computer running 10.3.9
    old email in inbox can not be read after mail.app receives new email
    all the messages come back with an error " The message from (sender) concerning (subject) has not been downloaded from he server. You need to take account online in order to download it."
    the account is a POP account, so the emails are already on the computer
    the account is not "offline" no lightning bolt next to the account
    the account will work again if mail is quitted and reopened, up to the point new mail comes in
    only inbox seem to be affected, as the sent folder works
    have rebuilt mailbox, repaired permisions,
    any help is appreciated
    thanks
    -d

    any ideas anyone?
    thanks

  • "Sent Messages" folder not receiving new sent mails after a server change

    My provider just moved my account to another server. The IMAP accounts needed to be re-established on my wife's PC in her program. So we know the files are all there on the new server.
    Funny thing is that it's not working on Mail on my iBook. And when these changes took place, my sidebar contents in Mail changed on me. I have sent some mail to various places since this happened, but none of these new mails have copies which are saved in my "Sent Items" or "Sent Messages" folders. So I have no record now of anything new since the change happened. I DO have copies of mail in there that are pre-change.
    I checked my preferences for mailbox behaviors, and the "Store Sent Items on the Server" is checked, so I'm not sure what's up.
    For the record I'm running OS X 10.4.7 and Mail 2.1.
    I have deleted and re-established my two email accounts in Mail in order to make them re-establish new links with the server, so I'm seeing my folders, but no new mail sent is showing up in my Sent Messages folder.
    I would appreciate if anyone knows if there could be an issue with Mail, my new host's servers, or what. It looks like a Mail issue to me, since my wife's PC is reading everything fine (and she is running Thunderbird as her client).
    Thanks!
    iBook G4   Mac OS X (10.4.7)  
    iBook G4   Mac OS X (10.4.6)  
    iBook G4   Mac OS X (10.4.7)  

    You're welcome.
    I don't think it's your fault. Different IMAP servers use different naming conventions, and the Mailbox > Use This Mailbox For command is meant to let you tell Mail which folder should be used for what purpose, but you shouldn't have to use it just to prevent your mail from being lost. At the very least, Mail should be able to use its own default Sent Messages folder without you having to do anything. I don't know why Mail fails to do this properly so often.
    Worse yet, not only does Mail sometimes fail to use the Sent Messages folder that's already there, but it doesn't even warn you that it's failing to save your sent messages as you've told it to.

  • Probably incredibly simple question, so sorry. I have just changed e-mail after many many years and I want to e-mail everyone in my mac mail client with the new e-mail address at the same time.

    Probably incredibly simple question, so sorry. I have just changed e-mail after many many years and I want to e-mail everyone in my mac mail client with the new e-mail address at the same time.

    If you are using Address Book, open it, create a new Group, select all you contacts by click the top one while holding down the shift key and then select the last one. Drag the contacts to the group, then send an e-mail to the group.

  • Whenever I access my Hotmail inbox to open a new mail it starts reloading the mail after every second unless i switch it to full view?

    whenever I access my Hotmail inbox to open a new mail it starts reloading the mail after every second unless i switch it to full view. Kindly help me to solve this continuous problem.

    I confirm this is a known bug and Microsoft are working on a fix. They plan to fix this before Firefox 4 reaches release candidate phase.
    A workaround is to change a preference in Firefox:
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''html5.enable''' and double-click on it to change its value to '''false'''
    If you do this, remember to set the preference back to true by double-clicking on it again when Firefox 4 release candidate is made available, the bug should be fixed by then.

Maybe you are looking for

  • How do I take a photo and make it the shape of the object I choose, eg. oval, etc?

    How do I take a photo and make it the shape of the object I choose, eg. oval, etc?

  • Jre 1.4.2_12 + java excel api problem.

    I got problem when i write a program to read chinese excel sheet with jre 1.4.2_12, chinese will encoding incorrect in java, but when I change jre version to jre 1.4.2_10 or jre 1.5.0 update 7 , everything s ok . any solution? p.s. jexcelapi 2.5.8

  • MacBook will not shut down

    I cannot turn my MacBook Pro off. The shut down option doesn't work. Holding down the power off button doesn't work. I've tried letting the battery die out. It turns off only because it runs out of juice but when I get back on I have the same problem

  • Urgent--- Expiry of Sales Order

    Hello Experts, Hope you all are doing good. I have requirement from client. **After reserving the quantity for a particular customer during sales order creation, can that system would be able to cancel the sales order after 7 days automatically and c

  • Prompt not displayed in first item of loop

    Hello, I use a cursor to access some info of fields I fill with a dynamic select, in the cursor I get the field_name (for the select) and the prompt I need to show on the item. When I loop through the loop for the first time to place the prompts on t