A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Redemption.RDOSession logon() stops emails sending-they stay in Ou



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 10th 09, 10:46 AM posted to microsoft.public.outlook.program_vba
Nabil
external usenet poster
 
Posts: 19
Default Redemption.RDOSession logon() stops emails sending-they stay in Ou

Hi,

I have a problem with my Outlook Addin, I'm using VSTO and Outlook 2007. I
am also using redemption for some of my events.

' Declarations
Public WithEvents myRDOsession As Redemption.RDOSession

in ThisAddIn_Startup() I have the following code

myRDOsession = New Redemption.RDOSession
myRDOsession.Logon()

The above line i.e. the logon() stops emails going out. Any email that I
send stays in the Outbox folder. If I comment out Logon() then emails go out
without a problem. I obviously need the RDOSession to be logged on.

I've tried to use myRDOsession.LogonExchangeMailbox(gstrUserID, "") which
works and email send correctly but I then won't have access to all the Stores
(myRDOsession.Stores will not contain my PST file Stores)

Has anyone come across this problem before, this is really starting to bug
me!!!

Any help will be greatly appreciated!

Thanks

Nabil
Ads
  #2  
Old September 10th 09, 02:06 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Redemption.RDOSession logon() stops emails sending-they stay in Ou

In an addin assign NameSpace.MAPIOBJECT to RDOSession.MAPIOBJECT instead of
using the Logon() method.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Nabil" wrote in message
...
Hi,

I have a problem with my Outlook Addin, I'm using VSTO and Outlook 2007.
I
am also using redemption for some of my events.

' Declarations
Public WithEvents myRDOsession As Redemption.RDOSession

in ThisAddIn_Startup() I have the following code

myRDOsession = New Redemption.RDOSession
myRDOsession.Logon()

The above line i.e. the logon() stops emails going out. Any email that I
send stays in the Outbox folder. If I comment out Logon() then emails go
out
without a problem. I obviously need the RDOSession to be logged on.

I've tried to use myRDOsession.LogonExchangeMailbox(gstrUserID, "") which
works and email send correctly but I then won't have access to all the
Stores
(myRDOsession.Stores will not contain my PST file Stores)

Has anyone come across this problem before, this is really starting to bug
me!!!

Any help will be greatly appreciated!

Thanks

Nabil


  #3  
Old September 10th 09, 03:15 PM posted to microsoft.public.outlook.program_vba
Nabil
external usenet poster
 
Posts: 19
Default Redemption.RDOSession logon() stops emails sending-they stay in Ou

Thanks Ken, I tried what you suggested but it hasn't solved my problem.
Emails are still waiting in my Outbox.

myRDOsession.LoggedOn reports as true

Any other suggestions?

Thanks

Nabil

"Nabil" wrote:

Hi,

I have a problem with my Outlook Addin, I'm using VSTO and Outlook 2007. I
am also using redemption for some of my events.

' Declarations
Public WithEvents myRDOsession As Redemption.RDOSession

in ThisAddIn_Startup() I have the following code

myRDOsession = New Redemption.RDOSession
myRDOsession.Logon()

The above line i.e. the logon() stops emails going out. Any email that I
send stays in the Outbox folder. If I comment out Logon() then emails go out
without a problem. I obviously need the RDOSession to be logged on.

I've tried to use myRDOsession.LogonExchangeMailbox(gstrUserID, "") which
works and email send correctly but I then won't have access to all the Stores
(myRDOsession.Stores will not contain my PST file Stores)

Has anyone come across this problem before, this is really starting to bug
me!!!

Any help will be greatly appreciated!

Thanks

Nabil

  #4  
Old September 10th 09, 04:25 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Redemption.RDOSession logon() stops emails sending-they stay in Ou

How are you sending the emails?

If they are staying in Outbox after being sent from the UI then something is
messing with the items there, which will cancel the send.

If you are sending using Redemption, for example, rdoItem.Send(), then you
might need to initiate a SyncObjects() call to start the transport. I
usually use something like NameSpace.SyncObjects(1).Start().

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Nabil" wrote in message
...
Thanks Ken, I tried what you suggested but it hasn't solved my problem.
Emails are still waiting in my Outbox.

myRDOsession.LoggedOn reports as true

Any other suggestions?

Thanks

Nabil


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
REDEMPTION HANGING during LOGON AVIS Outlook and VBA 2 May 22nd 09 03:52 PM
Redemption RDOSession.GetFolderFromPath and Outlook2007 SearchFolders Ralf Jansen Add-ins for Outlook 1 November 16th 06 06:56 PM
Redemption RDOSession.GetFolderFromPath and Exchange Cache Mode Ralf Jansen Add-ins for Outlook 5 November 9th 06 06:29 AM
Redemption+CBuilder: RDOSession.Logon MAPILogonEx-Error [email protected] Add-ins for Outlook 2 September 1st 06 08:32 AM
Sending larger emails is slow, then stops Larry B Outlook Express 6 April 22nd 06 02:29 PM


All times are GMT +1. The time now is 05:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.