rfwoolf
asked on
using MAPI to send to a BCC address
This is a question that has been asked at least 3 times on EE, but the answer has been so vague that future idiots like me cannot understand them:
https://www.experts-exchange.com/questions/20625310/MAPI-How-to-set-the-receiver-address-into-BCC-field.html
I am trying to add a BCC field to an email generated using MAPI.
Below you will find the code used to add a recipient to the MAPI_TO part of the email.
I need to keep this, and ADD a recipient to the MAPI_BCC part of the email.
I can't seem to do both.
https://www.experts-exchange.com/questions/20625310/MAPI-How-to-set-the-receiver-address-into-BCC-field.html
I am trying to add a BCC field to an email generated using MAPI.
Below you will find the code used to add a recipient to the MAPI_TO part of the email.
I need to keep this, and ADD a recipient to the MAPI_BCC part of the email.
I can't seem to do both.
if (RecipientEmail <> '') then
begin
//to field
lpRecipient.ulRecipClass := MAPI_TO;
if (RecipientName = '') then
lpRecipient.lpszName := PChar(RecipientEMail)
else
lpRecipient.lpszName := PChar(RecipientName);
lpRecipient.lpszAddress := PChar(RecipientEmail);
lpRecipient.ulReserved := 0;
lpRecipient.ulEIDSize := 0;
lpRecipient.lpEntryID := nil;
nRecipCount := 1;
lpRecips := @lpRecipient;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Amazing stuff, thank you!! Sorry for the late acceptance.
ASKER
Thank you for the excellent solution!
No problem on the delay, glad you found it useful
Russell
Russell
ASKER
Open in new window