How to get current account name in outlook 2003

  • Thread starter Thread starter Vishal Joshi
  • Start date Start date
Hi

Do you want to find out current user?
then you can do it this way

m_pApp->GetNamespace(L"MAPI",&nameSpace);
nameSpace->get_CurrentUser(&pCurUser);
pCurUser->get_Address(&UserEmail);
pCurUser->get_Name(&name);

hope this helps
 
Hello Rohan,

in office 2000 i got the signature name under key
HKCU\software\microsoft\\Windows NT\CurrentVersion\Windows Messaging
Subsystem\Profiles\<default profile
name>\0a0d020000000000c000000000000046
and string value "001e0361"

But for office 2003 i was unable to get it?

The situation is like this

Actually what I have is a Custom HTML form. if user selects RichText
format then
I will get the default signature name from signatures folder and open
HTML version of signature and add the body to my Custom form. It has
been told me that signature is strictly in text and can have different
font and colors.
So in this case what i need to follow?
Please Reply.
 
What account name do you mean? The default mail account name for a given
profile? Or the profiel name?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Hello Dmitry[MVP],
Let me explain, what I am doing:
I have custom HTML form in which I appent user template. Now in that
template I have my own <<SIGNATURE>>. Now I want to replace this with
the current applied signature. Now the problem is like I am not getting
the formated signature but I got the text which is not useful. So I
think that I have to read the current applied signature HTML file and
copy the body to my custom HTML form.
Please tell me if I am going in wrong direction.
 
How do you get the plain text version of it and what prevents you from
reading the HTML/rtf versions of it?
Also note that signatures are not at all exposed by Outlook; whatever you do
will be a hack likely to break with the next version of Outlook.

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