Question : Send Object Problem

I have developed an Access 2K runtime, running on a 2K Pro network.  The app has a button that should send an email (edit condition = true).  A single user can have it work fine one time, and fail another.  He is connected to the internet, and Outlook is open.  When the SendObject fails, it fails to open the email in edit mode.  Therefore I think the problem is with Outlook.  But I cannot figure why it works sometimes and not others.

When it fails, error trapping gives an error message that "...SendObject failed due to the reason given in the prior error message".  Of course there is no visible previous error message.

Any thoughts?

Thanks

Rick

Answer : Send Object Problem

Don't use SendObject - it is highly buggy. Here's an example of SendObject's bugs:
http://support.microsoft.com/default.aspx?scid=kb;en-us;260819

You can use either CDO or MAPI to send an e-mail. You can find some code to do that here:
MAPI: http://www.trigeminal.com/lang/1033/codes.asp?ItemID=24#24
CDO: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q161088

However, if you go via Outlook, you may need to use install the security update for Exchange Server in order to avoid the dreaded "A program is trying to send e-mail on your behalf" message:
http://www.microsoft.com/office/ork/xp/appndx/appa11.htm
Random Solutions  
 
programming4us programming4us