Originally posted by: hjKim
I did all form
mail.To("...");
to
mail.Send(MAPI_DIALOG);
so I can call 'Outlook Express'
very nice.
I can see reciver mail address.
But if I pushed 'send' on Outlook Express then
name dialog opened.
"Not know name" maybe this dlg.
This dialog opend when I have inputted
null string like "" or (.
My Thought..
mail.To(".."); is not setting in Outlook Express.
please fix this bug.
please...
I will be thanks to your answer e-mail.
Reply
Originally posted by: Eric Bouchard
it worked very well, but i always have a window that ask me to choose a profile before sending email. Is there a way to work around that?
Originally posted by: B.Perreault
'Tanks a lot. ;-)
ReplyOriginally posted by: eric33
This class is very good.
I use the Send method with flags equal to MAPI_DIALOG in order to open the default MAPI program (for example outlook).
There are two point i cannot implement :
How to have the MAPI service window maximized ?
How to have the MAPI service window in modeless mode and not modal mode ?
Thanks for the class. It save me a lot of time.
Reply
Originally posted by: Bill Zhou
The MAPI class can't work in the NT service program. I find some topics about it in MSDN, but I am never
successed to follow that way. DO you get some good idea?
I can send you my codes if you need.
Thanks.
BIll_zhou@bigfoot.com
ReplyOriginally posted by: Glen Harman
Second, it appears that:
m_message.lpRecips[i].lpszName
are only freed in Send(). Which is fine assuming that Send() is always called. However, if an early
CIMapi routine fails and/or the calling code wants to abort, the destructor won't walk the arrays and free
these malloced blocks.
Also, it looks like there would be problems if one attempted to reuse the CIMapi instance and send
additional emails. The realloced m_message.lpFiles and m_message.lpRecips are not freed in Send().
Lastly, at least on my Win95/OE5 setup, From() has no
Keep these in mind and use/modify as appropriate.
First, thanks for this class. It provided a usefull reference.
m_message.lpFiles[i].lpszPathName
m_message.lpFiles[i].lpszFileName
effect... the sending account's email address is always used.
Originally posted by: gregory zhang
This is a good file which I just need.
Thank you anyway.
Originally posted by: Jitendra Patil
Hi,
I'm using the code exactly as you are given. But I'm getting error in Send() method. The return error code is always 2 i.e. MAPI_E_FAILURE.
I'm using IE5, Outlook Express 5.0 on Windows NT4 Server.
Any suggestions?
Regards,
Jitendra.
Originally posted by: Tage V. Madsen
This solution requires that the user has installed a MAPI compliant email client, and that he is using that one normally, or at least has set it up correctly to send email.
A safer way to launch a user's mail application is IMHO to simply call ShellExecute:
ShellExecute(m_hWnd,NULL,
"mailto:support@myfirm.com?subject=Support needed",
NULL,NULL,SW_SHOWNORMAL);
This will launch the default email client (the one registered for handling mailto:) with the To field set to "support@myfirm.com" and subject "Support needed", now all the user has to do is to type his questions and send it.
ReplyOriginally posted by: Maxime Asselin
Unable to load mail system support.
Here is my code and where it fails in your class.
My code:
// Prepare and send the email
if (M_nLANGUE == FRANCAIS) {
// Put text of message in body
And were it fails in your class:
The upper function in the call stack is a NULL.
Any idea whats wrong?
Thanks.
I get this message when I call mail.Send()
Please!
CIMapi mail;
mail.To(sm->m_sSendTo);
mail.Subject("Rapport de casse");
mail.Attach(REPORT_BMP_FILE, "Voir le rapport de casse");
} else {
mail.Subject("Break report");
mail.Attach(REPORT_BMP_FILE, "View break report");
}
mail.Text(sm->m_sText);
mail.Send();
delete sm;
int nError = m_lpfnSendMail(0, (ULONG) pParentWnd->GetSafeHwnd(), &m_message, MAPI_LOGON_UI |
flags, 0);
I am on Windows NT with Exporer 4 and Outlook Express.
I saw that there was no MAPI32.DLL in my system32 directory so I copied the one from my Windows '95 OSR2
partition. Still got the same error.
Max.