BCC - Blind carbon copy can be useful if sending to multiple people
Posted by AORD
on 02/04/2008 09:55pm
To use BCC (Blind carbon copy),
Add to the IMapi.h file:
BOOL BCc(LPCTSTR recip);
Add to the IMapi.cpp file:
BOOL CIMapi::BCc(LPCTSTR recip)
// We succeeded in allocating a new recipient record
m_message.lpRecips[m_message.nRecipCount].lpszName = (LPTSTR) malloc(strlen(recip) + 1);
m_message.lpRecips[m_message.nRecipCount].ulRecipClass = MAPI_BCC;
m_error = IMAPI_FAILCC;
To add a BCC recipent use: mail.BCC("email@example.com");
Note: while testing if you BCC yourself twice you only recieve one message!
how can i send multiple mails within one method?
after the first mail.send() call the program crashes(Debug Assertion failed).
I basically created a loop which executes the following sequence:
mail.To(...); //always the same recipient
I found another problem with the outlook security dialog (another application try to send ...) while sending a mail. The security dialog has three buttons. Yes, No and help. If I press the help button my application crashes with stack overflow failure in the clbcatq.dll ???
Has anyone information or fixes for this problem ?