Originally posted by: Yuval Gross
Is there any way to know how many messages are about to come when MAPI spooler check for new mail?
It is possible to recieve notifications for new mail, but MAPI doesn't tell how many new messages are currently in the mailbox in advance. Knowing this number is vital for anyone who wants to implement a progress indicator while MAPI checks for new mail.
is there anywat to get that information?
or in other words, when MAPI send a new mail notification, how can I possibly know if this notification is the last one for the current poll (so I can display a message box, etc.)
Originally posted by: Wolfgang Browa
I have tried to send an email with MAPISendMail. My source code is written in C/C++. Whatever I tried, I just got Lotus Notes on my screen showing me all infos I gave to the MAPI function (Recipient, Subject,...) but the mail was not sent automatically. I have to click the "Send" button in Lotus Notes.
Is there a way automizing the sending, because I want to do it in the background of my application. Do I have to change any settings in Lotus Notes or somewhere else.
I am using a PC with Windows NT 4 and Lotus Notes 5.0.10.
Help would be appreciated.
Regards,
Wolfgang
Originally posted by: Daniel
Hello,
I have a computer with windows 95. In this machine I have only installed Lotus Notes 5.
I had made a program that uses MAPI and it was hang when I execute this.
The problem is: when I call the MAPISendMail function of MAPI32.DLL the program hangs.
If I install outlook or netscape messenger and after I uninstall it then the program works ok!
I don't know if I need a special version of MAPI32.DLL or a special configuration in the windows registry.
Anybody can help me, please?
Regards,
Dani.
Originally posted by: JoeJoe
when my application runing in service mode on Win2000.
Any advices are appreciated!!!
JoeJoe
Reply
Originally posted by: Carlos Pinheiro
After those lines initialize 'm_message.nRecipCount' and 'm_message.nFileCount' to 0; like this:
for (i = 0; i < m_message.nRecipCount; i++)
m_message.nRecipCount = 0; // INITIALIZATION
// Then free malloced attachments
m_message.nFileCount = 0; // INITIALIZATION
Great Class but if you do a cicle to send several mails, after the firts send, the app crashes in 'Send' method in lines where memory is release with 'free'.
free(m_message.lpRecips[i].lpszName);
for (i = 0; i < m_message.nFileCount; i++)
{
free(m_message.lpFiles[i].lpszPathName);
free(m_message.lpFiles[i].lpszFileName);
}
Originally posted by: Thankee
After I execute the function MAPISendMail,the mail is not sent to recipients and just put to Sender. And when I click send command in Microsoft Outlook 2002,It will be sent to recipients.
Originally posted by: patrickhenry
I am running Borland C++ Builder 5, which doesn't use stdafx.h like Visual C++. What do I need to include? Right now I'm getting a Type Name Expected error in imapi.h at the "CString m_text;" line.
Thanks for any help.
ReplyOriginally posted by: Andrew Cox
Here's my simple code (emaildriver.cpp):
#include "windows.h"
void DeliverMail() {
} // end DeliverMail()
int main(int argc, char* argv[]) {
return 1;
================================
My errors:
Compiling...
email demo.exe - 4 error(s), 0 warning(s)
Can someone help me set up a "bare bones" driver program for this? I can't get the class to compile with my program. I've gotten it down to 4 errors by including "windows.h" - how else do I need to set up my project to get this thing running? I'm excited about all of the positive feedback about this class, but I can't get mine to work =(
#include <mapi.h>
#include "imapi.h"
CIMapi mail;
mail.To("someone@somewhere.com"); mail.Subject("Test Email");
mail.Text("Success! Message sent successfully");
mail.Send()
//-Send an e-mail
DeliverMail();
}// end main()
emailDriver.cpp
c:\documents and settings\coxa\my documents\c++\email demo\imapi.h(50) : error C2146: syntax error : missing ';' before identifier 'm_text'
c:\documents and settings\coxa\my documents\c++\email demo\imapi.h(50) : error C2501: 'CString' : missing storage-class or type specifiers
c:\documents and settings\coxa\my documents\c++\email demo\imapi.h(50) : error C2501: 'm_text' : missing storage-class or type specifiers
IMapi.cpp
c:\documents and settings\coxa\my documents\c++\email demo\imapi.cpp(11) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
Error executing cl.exe.
Originally posted by: bheema
hi,
i had an application which can send mails through mapi from lotus notes but it is not working with the lotus notes
can any one help me how to send the mail from lotus notes
Thanks,
Bheema
br_merugu@yahoo.com
Originally posted by: Clutz
I want to run similar in vbs is this possible?
TIA
Clutz