|
When using your MAPI class, how can I get rid of the popup box that says "A program is trying to automatically send e-mail on your behalf...."
This box disrupts the flow of the program and doesn't go away until the user clicks Yes.
Any ideas?
|
|
|
|
|
This limitation was introduced by MS for a reason i.e. to limit the amount of SPAM being sent by using MAPI. If you want to avoid this issue, then you really need to talk to you Exchange sysadmin assuming you are using Exchange or otherwise use a programming model which avoids this issue such as Extended MAPI, CDO or SMTP directly.
|
|
|
|
|
Hi,
I have used to Serial port code to create serial communications with our embedded device and it works great. A couple of years ago we started using a Belkin USB adapter that creates a virtual serial port and it worked fine, until we tried it with Windows XP. The SetBreak() Function throws an exception -- "The Parameter is Incorrect". We bought newer USB to serial adapters and that fixed the problem.
We are now using Bluetooth serial adapters and they also work great, but yesterday I tried to use a newly released Bluetooth USB dongle that creates a virtual serial port and I get the same old error. The ClearBreak() function causes the error as well.
What's up with XP and virtual serial ports? Can anybody help?
Thanks,
ragband
|
|
|
|
|
Much more likely to be caused by the hardware drivers. Generally I've found USB based virtual serial ports to be very poor substitutes for the real thing.
|
|
|
|
|
This class is by far the best on the Internet. I have even used it in a win32 app. However, when use it with my win32 app, I did not link with any of MFC libraries.
I am just wondering will this cause a trouble? By looking at the PJNSMTP code, it seems self-contained. CString source code is there.
Also from the dependency walker, it does not show any dependencies on MFC dlls. Can anybody provides an answer?
Tim
Not avaliable
|
|
|
|
|
The classes depend very much on MFC. You are of course free to statically link to MFC which is what the sample app does. CString is of course a standard MFC class.
|
|
|
|
|
But why even I did not use MFC DLL as a static or share libaray, it still works fine and sends email.
Also, if you compile the following program without linking to MFC library and turn on multi-thread support, it works too.
#include <afx.h>
#include <iostream>
int main()
{
CString s("Hello");
std::cout<
|
|
|
|
|
Because you are including <afx.h> you ARE using MFC. I'm not sure what way it works when you just include it this way but you are including MFC in this sample. It is probably pulling in MFC via a static library. Also another thing to factor into this discussion is that you can use CString in Visual Studio .NET 2003 without MFC as this class along with a good few others are now shared between ATL and MFC.
|
|
|
|
|
You are right. After checking <afx.h>, it will automatically include mfc42d.dll in the build. So even if I do not turn on Using MFC option in the setting, it is still included.
One more question, how do I know this libaray is statically or dynamically linked? Thank you.
Ting
Not avaliable
|
|
|
|
|
Thanks. I have just figured this out.
If Share DLL is selected in the project setting, _AFXDLL will be defined and hence afx.h will use MFC42d.dll to link the library.
If static DLL is selected, _AFXDLL is not defined and nafxcwd.lib will be used to do the static link.
However, if "Do not use MFC" library is selected, and none is defined. Static link is performed during the link. App linked with static MFC, so even if win32 app does not activate MFC support in the Project setting, by simply including <afx.h>, MFC support is automatically included.
Thank you for this. BTW, your SMTP code is super. Not even have memory problems, very rare in freeware.
Ting
Not avaliable
|
|
|
|
|
Something is useful for my works, thanks for your code
|
|
|
|
|
Hi,
I've A Big Problem on DownLoading A WHole WebSit e via www.CodeProject.com/... /.../...
which is How to Pending and Resuming on Connection Failure on Internet Connection!!!
Please Help me!!! if U Can
With Or Without Using MFC...
I wish to DownLoad From win2000 Service Program
|
|
|
|
|
|
|
|
please help me
do you have ftp proxy source,please give me
minh
|
|
|
|
|
|
this is best web site i have ver seen it contains some good weapons fr me ))!!!!!
saurav rohilla
|
|
|
|
|
PJ,
You are simply the man. I cant express in words how much your Library has helped me. THANK YOU PJ. You da man :--)
|
|
|
|
|
Just wondering why you chose to use MFC rather than the API...
---------------------------
Tempus Fugitaboutit...
|
|
|
|
|
Because I like to leave work at 5 <gggg>.
|
|
|
|
|
|
Thanks, Humour is not my strong point, but I couldn't resist making the reply
|
|
|
|
|
Good one ! )
BTW, I totally agree with you !
|
|
|
|
|
Dear sir,
This is Cynthia from Taiwan.
I wrote a simple program which will periodly check my inbox of my OutLook Express using Simple MAPI. But I have a problem that I can only get the text part of the email content through the MapiMessage structure. Is there any way to get the whole content of the email using Simple MAPI? Or I must use MAPI instead? As you know many emails are the html format! Please help me! Thanks a lot!
Best Regards,
Cynthia
Cynthia Ko
|
|
|
|