Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAPI problems, please help

Status
Not open for further replies.

Valius

Programmer
Oct 20, 2000
174
US
Okay, here is my problem. I've been able to use MAPI in my program to send out emails and able to populate the TO and CC fields. I want to be able to send "On Behalf" of someone, but it's not letting me. I'm making a MapiRecipDesc and filling it with all the info, but using MAPI_ORIG in the ulRecipClass property. Then in my MapiMessage object, I'm sticking the address of my MapiRecipDesc into the lpOriginator property of my MapiMessage object. When I'm about to send it, I use the MAPI_DIALOG flag in the SendMail function so I can see the dialog box to see what has been filled in and what happens. I can get the TO and CC fields filled in, but the FROM field I can't get filled out at all and I know there is a way to do that with the MAPI_ORIG flag...HELP!!!!!

Thanks in advance,
Niky Williams
Lead Engineer
NTS Marketing, Inc.
 
Hi Niky,

I have run into exactly the same problem.
Presenting the dialog (MAPI_DIALOG), I am allowed to modify the 'from' field and enter the name of the person that I want to send on behalf of - IF the person in question has delegated me to access his mailbox.

However I don't want to present the dialog, since I am working on a batch-program.

Without the dialog, I can't make it work :
The MAPI interface seems to totally ignore whatever I put into the lpOriginator field. All other fields (TO, CC and BCC, Text, Subject etc.) are behaving as expected.

Since your question is more than one month old, you may have solved the problem already.
If so, could I please ask you to share your knowledge.

Reagards

Jens Olesen








 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top