Thanks to thread1251-1027786, I have found out about using the SentOnBehalfOfName property which almost works fine.
For example, say my email address is [ignore]joe@somewhere.com[/ignore] and I want to send an email from the mailbox [ignore]pete@somewhere.com[/ignore]
I found that pete has to give joe permission to do this. Once that is given, if joe's puts [ignore]pete@somewhere.com[/ignore] in the SentOnBehalfOfName property, the email is sent from pete.
However, it saves the copy into joe's sent items folder.
What I would like to do is save the email into pete's Sent Items folder.
I found this...
I'll keep on digging myself, but if anyone has any pointers on this, I'd be grateful.
Thanks,
Stewart
For example, say my email address is [ignore]joe@somewhere.com[/ignore] and I want to send an email from the mailbox [ignore]pete@somewhere.com[/ignore]
I found that pete has to give joe permission to do this. Once that is given, if joe's puts [ignore]pete@somewhere.com[/ignore] in the SentOnBehalfOfName property, the email is sent from pete.
However, it saves the copy into joe's sent items folder.
What I would like to do is save the email into pete's Sent Items folder.
I found this...
...in the VBA help but don't entirely understand it!Dim myItem As Outlook.MailITem
Dim myResponse As Outlook.MailITem
Dim mpfInbox As Outlook.MAPIFolder
Dim mpf As Outlook.MAPIFolder
Set mpfInbox = Application.Session.GetDefaultFolder(olFolderInbox)
Set mpf = mpfInbox.Folders.Add("SaveMyPersonalItems")
Set myItem = Application.ActiveInspector.CurrentItem
Set myResponse = myItem.Reply
myResponse.Display
myResponse.To = "Dan Wilson"
Set myResponse.SaveSentMessageFolder = mpf
myResponse.Send
I'll keep on digging myself, but if anyone has any pointers on this, I'd be grateful.
Thanks,
Stewart