Click to See Complete Forum and Search --> : MAPI


Vrajesh Mehta
July 14th, 1999, 01:18 PM
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.

Lothar Haensler
July 15th, 1999, 01:48 AM
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

Vrajesh Mehta
July 15th, 1999, 10:43 AM
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

sheetal
July 17th, 1999, 02:39 AM
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

Matthias S
July 19th, 1999, 01:50 AM
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