 |
|
 |
I want to create a list item like yours (Select Folder Dialog). Any chance of getting this project in vb.net or c#
|
|
|
|
 |
|
 |
Hi
by getting help from ur code i was able to import outlook E-mails body content, sender address, and subject to data grid view but couldn't find any way to import e-mail attachments. can u pls tell me a way for it iam using VSTO 2008 and MS outlook 2007
|
|
|
|
 |
|
 |
I have a qusetion about the alias check, how do you check the given alias is exist or not. Don't use the search method.Thanks.
|
|
|
|
 |
|
 |
Because I have 2007 installed, I had to change the paths like so:
#import "C:\Program Files\Common Files\Microsoft Shared\Office12\mso.dll" named_guids
#import "C:\Program Files\Microsoft Office\Office12\MSOUTL.OLB" \
no_namespace exclude("_IRecipientControl", "_DRecipientControl")
Now when compiling, I get this error:
Error 2 error C3121: cannot change GUID for class 'Folder'
Any ideas how to fix it?
Raul Macias
|
|
|
|
 |
|
 |
Have you ever found a solution? I'm getting the same problem.
Andy
|
|
|
|
 |
|
 |
Did anyone find the solution to this? I want to be able to have a "To" button that provides access to MS Outlook contacts' names and email addresses.
Additionally are there reasonable references to the Outlook Object Model (preferrably in C++)?
Ron
|
|
|
|
 |
|
 |
who has solved this problem, Pls send email to me!
tanxs001@163.com
Thanks very much.
|
|
|
|
 |
|
 |
This is due to name collision. Try rename class "Folder" to new name, like: rename("Folder", "OutlookFolder")
|
|
|
|
 |
|
 |
hello all,
I am trying to write a C++ code for importing(getting) mails from MSOUTLOOK
using MAPI functions.I use the fuction PR_BODY_W for gewtting the HTML
mail body but it doesn't works so i use GETHTMLBODY() instead.Thus i
got the HTML mails correctly.
But the problem is that i used PR_HASATTACH,
PR_ATTACH_FILENAME_W,PR_ATTACH_TAG for getting attachments.But i am not
getting attachments and images embedded in mail correctly.some images embedded in mail (mails in msoutlook) are
taken here as attachments(in msoutlook it is not shown as attachments)
and is displaying one after another in my application. please give me
suggestion for getting the mails correctly or please help me by giving
a sample code(using MAPI) for getting(importing) mails from msoutlook.
regards,
Alex
|
|
|
|
 |
|
 |
Hi There,
I wanna achieve all this functionality using C#...can you help?
|
|
|
|
 |
|
 |
Hi,
I want to get html source of email message alongwith images that are embedded in the message. As I m getting email's source using the method "GetHTMLBody" of '_MailItemPtr' but i don't know how to get the images that r embadded in the body so that when i want to display the html source in browser the origional message should be displayed with images at their proper places. Plz also guide me how to store that images and then retrieve when i want to display the message in browser.
Thanks & appreciation for any reply.
|
|
|
|
 |
|
 |
Would you tell me How can I get web-page property in using MAPI?
I use LPMAILUSER->GetProps(PR_PERSONAL_HOME_PAGE), but failure return!
|
|
|
|
 |
|
 |
Hello
I have read several articles in this site about importing outlook items and displaying them in your application. My questions is if i can display in my application other user's sent items for example, within a network, from my own computer.
Is there any way to do this?
Regards, Kokas
|
|
|
|
 |
|
 |
HOW TO don't show outlook waring Dialog?
|
|
|
|
 |
|
 |
You cannot override the security warning. its the security feature to prevent viruses/worms to send emails to your contancts without your notice.
Cheers!
deepesh
|
|
|
|
 |
|
 |
You can override this warning with redemption.
see http://www.dimastr.com/redemption/ for details.
|
|
|
|
 |
|
 |
You can use Extended MAPI
Good luck!!!.
|
|
|
|
 |
|
 |
here's what you're looking for (and what i was looking for and found):
http://www.codeproject.com/KB/IP/CMapiEx.aspx[^]
that's a working sample of how to use extend mapi.
when you iterate through the contacts in this code, call MAPIOBJECT on the contact, then through that get the email and name of the contact to get around the security warning.
here's the quick and dirty (didn't include error checking):
static const GUID MY_IID_IMAPIProp = // {00020303-0000-0000-C000-000000000046}
{0x00020303,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}};
static const GUID OUTLOOK_EMAIL_DATA = // {00062004-0000-0000-C000-000000000046}
{0x00062004,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}};
#define OUTLOOK_EMAIL1_TYPE 0x8082
#define OUTLOOK_EMAIL1_VALUE 0x8083
#define OUTLOOK_EMAIL1_NAME 0x8084
#include <mapix.h> // for extended mapi
#include <mapiutil.h> // for get one prop
#pragma comment (lib, "mapi32.lib")
...
CComPtr<IUnknown> spMAPIObj = NULL;
CComPtr<IMAPIProp> spMAPIProp = NULL;
spMAPIObj = spContact->GetMAPIOBJECT();
hr = spMAPIObj->QueryInterface(MY_IID_IMAPIProp, (void **)&spMAPIProp );
LPSPropValue pProp = NULL;
hr = HrGetOneProp(spMAPIProp, PR_DISPLAY_NAME, &pProp);
//0x00040380 == undefined prop, but is success, so explicity check for S_OK
if (hr == S_OK && pProp != NULL && pProp->Value.LPSZ != NULL) {
sVal = prop.Value.LPSZ;
}
MAPIFreeBuffer(pProp);
ULONG ulPropCount = 0;
MAPINAMEID nameID = { (GUID*)&OUTLOOK_EMAIL_DATA, MNID_ID, OUTLOOK_EMAIL1_VALUE };
LPMAPINAMEID lpNameID[1]={ &nameID };
LPSPropTagArray lppPropTags = NULL;
hr = pIMAPIProp->GetIDsFromNames(1, lpNameID, 0, &lppPropTags);
hr = pIMAPIProp->GetProps(lppPropTags, fMapiUnicode, &ulPropCount, &pProp);
//0x00040380 == undefined prop, but is success, so explicity check for S_OK
if (hr == S_OK && pProp != NULL && pProp->Value.LPSZ != NULL) {
sVal = prop.Value.LPSZ;
}
MAPIFreeBuffer(lppPropTags);
MAPIFreeBuffer(pProp);
Dan.
modified on Thursday, July 31, 2008 2:24 PM
|
|
|
|
 |
|
 |
how to override the security waring?
can you write some source code here. thanks!
licj
|
|
|
|
 |
|
 |
Hello all,
Does anybody know how to import message from Outlook in RFC822 format?
Thanks in advance.
|
|
|
|
 |
|
|
 |
|
 |
your code is not complete.. the original source code resulting an error 'Unable to instantiate Outlook', the problem can solve by adding CoInitialize(NULL) to HRESULT.
so the code will be :
hr= CoInitialize(NULL);
then
hr=pApp.CreateInstance(__uuidof(Application));
the rest of code is great.. thanks for this simple and straight approach to access outlook contacts.
Riki Risnandar
|
|
|
|
 |
|
 |
Even though I Initilised COM library using CoInitialize(NULL) i'm getting same error "Unable to Instantiate Outlook". I tried run the application on the system which is not under domain login then it works.
Can you help me out..
Thanks
BharadwajM
|
|
|
|
 |
|
 |
Dear Riki,
The code written by Deepesh is working fine for me. I m using MS Outlook 2000. So, there may be some version problem. Which version of outlook u r using? plz reply bcz i have to write code for all versions of outlook.
Regards.
|
|
|
|
 |
|
 |
im using MS Outlook from MS Office XP.
for MS outlook bundled with MS Office 2000:
// OFFICE 2000
#import "C:\My Programs\Office2K\Office\mso9.dll" named_guids
#import "C:\My Programs\Office2K\Office\MSOUTL9.OLB" \
no_namespace exclude("_IRecipientControl","_DRecipientControl")
for MS outlook bundled with MS Office XP:
// OFFICE XP
#import "C:\Program Files\Common Files\Microsoft Shared\Office10\mso.dll" named_guids
#import "C:\Program Files\Microsoft Office\Office10\MSOUTL.OLB" \
no_namespace exclude("_IRecipientControl", "_DRecipientControl")
for MS outlook bundled with MS Office 2003:
// OFFICE 2003
#import "C:\Program Files\Common Files\Microsoft Shared\Office11\mso.dll" named_guids
#import "C:\Program Files\Microsoft Office\Office11\MSOUTL.OLB" \
no_namespace exclude("_IRecipientControl", "_DRecipientControl")
regards
Riki Risnandar
|
|
|
|
 |