I am developing an application that will tell attachment in email using MAPI.
1) When I send an email, the sender name is coming up in some systems and there is a problem in others. I have implemented the technique that is provided in MFCMAPI ( I have used AdviseSink Notifications ).
2) Where sender name is not coming, its giving "0x8004010f <Bad Ptr>" values. When I can retrive PR_MESSAGE_DELIVERY_TIME, then there shouldn't be any problem to retrieve sender name of an email. And I can't even check for bad pointer.
3) 0x800A001E gives sender name of email when the mailbox is connected to Exchange and 0x800D001E gives sender name of email when the mailbox is connected to Internet email. Kindly name these properties. And, even these properties give bad pointer values when AdviseSink Notifications are implemented.
Comments: ** Comment from web user: talib2608 **
Why don't you just return the macro 'PT_ERROR' when you have defined it? In other cases it returns as 'PT_ERROR' and not "0x8004010f <Bad Ptr>". This was so simple and it is taking you so much time.
PR_SENT_REPRESENTING_NAME and PR_SENT_REPRESENTING_EMAIL_ADDRESS still not coming when sent an email. PR_MESSAGE_DELIVERY_TIME comes up. PR_SENT_REPRESENTING_NAME and PR_SENT_REPRESENTING_EMAIL_ADDRESS comes up only when sent using public folder.