Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / February 2004

Tip: Looking for answers? Try searching our database.

Outlook Redemption - How to send email on someone behalf?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kim - 18 Feb 2004 06:36 GMT
Hi all,

I tried to send the email on someone behalf, but its keep send email
from my account. On my computer, I created two profile "KIM","JACK". I
got both permission on these two profile. When I opened Outlook for
"KIM" account, and i tried to send email on behalf of JACK, its keep
send the email from "KIM" profile instead of "JACK" profile. But if i
close the OUTLOOK then it send email correctly i.e from JACK
profile.... I used "LOGON" function to logon JACK profile with
NewSession... Is is the right function to send email on someone
behalf? also where can i find thHi all,

I tried to send the email on someone behalf, but its keep send email
from my account. On my computer, I created two profiles "KIM","JACK".
I got both permission on these two profiles. When I opened Outlook for
"KIM" account, and I tried to send email on behalf of JACK, its keep
send the email from "KIM" profile instead of "JACK" profile. But if I
close the OUTLOOK then it send email correctly i.e. from JACK
profile.... I used "LOGON" function to logon JACK profile with
NewSession... Is it the right function to send email on someone
behalf? Also where can I find the Outlook Redemption Object Manual?

This is a completed coding:

  Dim olApp As Outlook.Application
  Dim olMailItemObject As Outlook.MailItem
  Dim SafeMailItem As Redemption.SafeMailItem
 
  Set olApp = CreateObject("Outlook.application")
  Set NS = olApp.GetNamespace("MAPI")

  NS.Logon Profile:="JACK", NewSession:=True

  Set olMailItemObject = olApp.CreateItem(olMailItem)
  Set SafeMailItem = CreateObject("Redemption.SafeMailItem")
  SafeMailItem.Item = olMailItemObject
  SafeMailItem.Body = "test body"
  SafeMailItem.Subject = "test"
  SafeMailItem.Recipients.Add "KIM"
 
  SafeMailItem.Recipients.ResolveAll
  SafeMailItem.Send
 
  Set olMailItemObject = Nothing
  Set SafeMailItem = Nothing
  Set olApp = Nothing
  Set NS = Nothing

Any help will be really appreciated,
Thank,
Kim,
Dmitry Streblechenko \(MVP\) - 18 Feb 2004 17:03 GMT
See my reply in the *.program_vba newsgroup.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Hi all,
>
[quoted text clipped - 47 lines]
> Thank,
> Kim,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.