Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Simple MAPI and NT Service, using Outlook as MAPI client

Posted on 2000-05-11
6
Medium Priority
?
489 Views
Last Modified: 2013-12-03
  Is it possible to send mails from a NT service using Simple MAPI.
   We do not have exchange server.
   I have written a NT Service. Its start up parameter is set for
   "Administrator"
   When Run, MAPISendMail returns success.
    But the mail is not sent. [it is present in outbox] and Microsoft outlook
    hangs when closed.
   This happens only with Microsoft exchage and Outlook mail client.
 
   [Mails are sent when Outlook express and Netscape messanger are used
   as MAPI client]
   
    Why is Outlook hanging? should i use extended mapi.
     THe mail server is sendmail on linux
    Could somebody please suggest some solution to this problem
    or give pointers to some urls    
  TIA,
Akhila
0
Comment
Question by:akhila75
  • 3
  • 3
6 Comments
 
LVL 15

Expert Comment

by:NickRepin
ID: 2802143
Have you specified MAPI_NT_SERVICE flag for MAPIINIT_0.ulFlags in the MAPIInitialize()?
0
 

Author Comment

by:akhila75
ID: 2803290
No, i am not calling MAPIInitialize as it is an extended mapi call.
0
 
LVL 15

Accepted Solution

by:
NickRepin earned 800 total points
ID: 2803310
Windows NT Service Client Applications

http://msdn.microsoft.com/library/psdk/mapi/intro_2qnn.htm

INFO: Outlook Object Model Unsuitable to Run in an Windows NT Service
http://support.microsoft.com/support/kb/articles/Q237/9/13.ASP
0
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 

Author Comment

by:akhila75
ID: 2803347
Is there any sample code for using extended MAPI from a NT Service?
0
 

Author Comment

by:akhila75
ID: 2803352
No, i am not calling MAPIInitialize as it is an extended mapi call.
0
 
LVL 15

Expert Comment

by:NickRepin
ID: 2803451
There is no significant difference between using of extended MAPI as the ordinary application and as the service.

But you have to:

1) Specify MAPI_NT_SERVICE flag for MAPIINIT_0.ulFlags in the MAPIInitialize()

2) Do not use any user interface in your program like message boxes etc.


0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question