PC Review


Reply
Thread Tools Rate Thread

Automation and Multiple profiles

 
 
Nicolas Mainczyk
Guest
Posts: n/a
 
      19th Oct 2005
Hi,

I have several profiles on Outlook and I need to automate the sent of a
mail.

Everything is fine except that when I use the
<< Mynamespace.Logon profile_name, password, False, True >> instruction, it
always run the default profile I set up. It actually behaves as if there is
an open session of Outlook with the default profile.

I tried to use every combination of true and false for the last 2
parameters.

Outlook is not run when I launch the process so no session is already
opened. I checked TSRs but none indicates Outlook or MAPISRV32 or stuff like
that.

I have a second little problem when I use the SentOnBehalfOfName method.
when the mail is received, the 'From ' field well indicated the
email_address1 but when I open it 'From' indicated the address of the
profile used. When I click Reply, my address appears. I used then the
'ReplyRecipientNames' method to force the 'reply to' to the correct address
but I would like my name not to appear or at least My name on behalf of
email_address1 which is however, well indicated in the 'sent items' folder
I tried to modify the 'SenderName' value but it says read only property.

Here is a sample code:
Dim ol As Object, myItem As Object
Set ol = CreateObject("outlook.application")
Set mynamespace = ol.GetNamespace("MAPI")
mynamespace.Logon profil, mdp, False, True
....
myItem.SentOnBehalfOfName = email_address1
myItem.ReplyRecipientNames = email_address1


Did anybody run across any of that problems ?

TIA,
Nicky.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple profiles or one with multiple email accounts wltiii Microsoft Outlook Installation 4 24th Sep 2008 07:33 PM
Profiles extending to multiple profiles on computers =?Utf-8?B?TWlrZSBE?= Windows XP General 1 1st Jan 2007 03:13 PM
Questions about Windows XP Pro Multiple Profiles on Windows 2000 Server, Office 97 files transfered from Win98 problems because of profiles, etc Nate Goulet Microsoft Windows 2000 Advanced Server 1 20th Dec 2004 04:06 PM
Questions about Windows XP Pro Multiple Profiles on Windows 2000 Server, Office 97 files transfered from Win98 problems because of profiles, etc Nate Goulet Windows XP Basics 0 17th Dec 2004 11:33 PM
Multiple Profiles, multiple accounts, multiple machine configuring? Sam Marrocco Microsoft Outlook 0 30th Dec 2003 03:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:43 PM.