[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference chefs::ms-exchange

Title:Microsoft Exchange Server
Notice:
Moderator:FLASK2::SYSTEM
Created:Fri Feb 17 1995
Last Modified:Thu Jun 05 1997
Last Successful Update:Thu Jun 05 1997
Number of topics:1099
Total number of notes:5174

861.0. "Sample MAPI code in VB" by NEWVAX::WHITMAN (gun control = 5% gun + 95% control) Wed Feb 05 1997 07:25

    I am using EFD to input trouble ticket data. I have modified COMMANDS.BAS
to create a text file containing the form data and boilerplate which will be
used by a downstream program to generate the trouble ticket.  I now have the
problem of automatically mailing the text file to the other software.

    I have tried "sendmail.exe", but find it won't run on Alpha. The right way
to do this is via MAPI calls, but I have no MAPI experience and no manuals for
MAPI from within Visual Basic.

    Can anyone point me to some VB code which will read in a text file and
send the mail along, just something I can use as sample or guide?

    What was supposed to be a 2 day effort is going into it's 7th day...

Thanks for any pointers you might provide,

Al
T.RTitleUserPersonal
Name
DateLines
861.12954::FOLEYhttp://axel.zko.dec.comWed Feb 05 1997 18:316

	You could try useing BLAT. That's a simple SMTP command
	line emailer. Available in Intel and Alpha. 

							mike
861.2Use custom MAPI control from VB?TURRIS::twuwuv.zko.dec.com::howerThu Feb 06 1997 18:016
If you're using VB 4.0, you should be able to use the MAPI controls
(seeTools/Custom Controls.../MS Mapi Controls) to send the file. 
Help "MAPI" also points to a sample MAPI application. It's "simple 
MAPI", but should work for  simply sending files.
                Helen

861.3OGOPW1::tunsrv2-tunnel.imc.das.dec.com::michaelwmichaelw@mail.dec.comSun Apr 13 1997 10:0912
If you still need this write me at michaelw@mail.dec.com
for MAPI samples in VB.

I am not a programmer by trade.  My codes ugly, but it
does EVERYTHING you mentioned plus can walk public folder
trees and read their contents.

michaelw@mail.dec.com

Tal.