|
|
Comments and Discussions
|
|
 |

|
I would like to get all the entries in global address list of my Exchange server in my application how can i do this using CMapiFolder class ?
|
|
|
|

|
hi using this method what will be the ID of reply and the compose button? i m using VC++ and want to notified when the reply or the compose button is clicked.
Regards.
Tasleem Arif
|
|
|
|

|
I am using Outlook 2003, I compiled your code. At the time I run it, I receives a "Can't open outlook!" message. Looks like "m_OutlookApplication.CreateDispatch( "Outlook.Application" )" cause the failure. Can you drop me a hint on what I miss here?
Thank you.
|
|
|
|

|
I also met this problem , how to solve it, some one help me please!
|
|
|
|

|
Hi there,
do you know how to catch the mail item, after it was sent? or just after it was attach to the Outlook Folder?
My theory on this is to declare a message handler, (based on your example) change the event id ( where to get the list of the event ID?) and get the dispatch pointer and create a mailitem object from the dispatch.
|
|
|
|

|
Does anyone know how to do this (event on new mail) in visual basic. net?
iv been searching high and low to no avail
|
|
|
|

|
Hi,
1. Where to add this code ?(In which function)?. i tried to added this code in the CAppEventListener::HandleNewMail() function. is it correct or not?
2. If correct means i am getting Empty message box ( after called the mlitem.get_Body() ). what's wrong in my settings?.
3. my outlook express in already open. MFCOutlookevents application that is also running, in that time when ever i rec'd a new mail i am getting the message box from outlook express"A program is trying to access the email address..." what to do ?.
regds,
Rajesh. S
|
|
|
|

|
Can you explain this a little bit better?
// Outlook AppEvents GUID
const IID IID_ApplicationEvents =
{0x0006304E,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}};
Is each hex value an event that you want to have access to? I do not see the hex value for the NewMail event. Can you explain the hex values in the first set of brackets and the hex values in the second set of brackets.
Thanks
Tom Wright
tawright915@yahoo.com
|
|
|
|

|
Hello
I googled too many hours but still confused with my project.
What i want to do is following.
I want to change stationary when user send any mail. My add in should have facility to provide the stationary by property sheet.
Please let me know if you have any idea to do such thing.
Thank You
Manish
|
|
|
|

|
I'm not sure how you can add the stationry, but if you catch the send event (see a prvious comment on how to do that), you can create a CMailitem from the second argument and process from there... The CMailItem class has methods you can use, but I am sure if you did some more investigation, you could do a lot more.
I added these lines to the code in AppListener.cpp to catch an email before it was sent:
case 0x0000f002: // ItemSend()
if(pDispParams->cArgs !=2)
return E_INVALIDARG;
else
{
// the second argument is the pointer to the mail item.
CMailItem Mail(pDispParams->rgvarg[1].pdispVal);
HandleSendMail(Mail);
}
break;
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
How to implement Outlook event sinks to alert your application when new mail has been received.
| Type | Article |
| Licence | |
| First Posted | 29 May 2003 |
| Views | 97,526 |
| Bookmarked | 41 times |
|
|