CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: MAPI

  1. #1
    Join Date
    Jul 1999
    Posts
    5

    MAPI

    I want to develop an application using MAPI controls available in visual basic which will run on an NT server without any user intervention. In my organisation I have a trust relationship between the NT server and Exchange server ie when a mailbox is created on Exchange it automatically creates a domain user with same name and password.I want to develop this application and schedule it using WinAT inorder to send emails to a set of users automatically without asking me to enter either profile name or password for the mailbox. I need to know whether mapi will work in this context or not. If yes How to develop it ?
    If No then what are the others ways to develop this kind of application.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: MAPI

    In your case I'd use CDONTS (Collaboration Data Objects for NT Server).
    It's a set of COM components that are very easy to use and AFAIK they are part of NT OPtion pack.

    example

    set objMail = Server.CreateObject("CDONTS.NewMail")
    objMail.Send "sender","emailaddress of Receiver","subject","message text",0
    set objMail = nothing





  3. #3
    Join Date
    Jul 1999
    Posts
    5

    Re: MAPI

    Thank you very much for your suggestion I will try out this option. but I am using VB 5.0 and i could not find the required dll can you tell where can I get this dll from. Is there any site from where i can download this dll



  4. #4
    Join Date
    Jun 1999
    Posts
    5

    Re: MAPI

    I don't much of MAPI but I can give you one
    more solution that is Winsock (Smtp) which is
    pretty simple to use only parameter you have to
    specify is SMTP server name ans UID /password
    all you can control from your code you can
    also send attachment as well with converting
    yr attachment in UUENCODe format.


    check out this issue in my articles
    at www.cogniza.com
    or
    http://welcome.to/sheetaljain



  5. #5
    Join Date
    Jul 1999
    Location
    Prague, Czech Republic
    Posts
    263

    Re: MAPI

    I have just written an NT Service in VB6 that provides a function of checking a certain mailbox for new messages and then replying these messages and forwarding them to some people in the company.

    I have used the CDO Library (1.2) and I found it very easy to use. It's a free Microsoft DLL (correct me anybody if I'm wrong!!!) and it is very easy to use. You just add a reference to your VB-Project and start mailing away...

    If you have any questions, let me know.

    Matthias


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured