p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

proasp_codeclinic thread: Anyone knowledgable in MAPI??? HELP!

Message #1 by jprentice@e... on Wed, 28 Mar 2001 18:46:39
for more links and resources on CDO


At 04:42 AM 3/29/01, you wrote:
>If you do specifically want to work with Exchange server in order to access
>features like resolving recipients, using mail folders and public folders,
>calendar, ciontacts etc, then MAPI has been superceded by CDO.
>CDO is extensively documented on MSDN (As is MAPI...)
>go to platform SDK, messaging and colaboration services
>Otherwise if all you want to do is send messages, then CDONTS is great.
>-----Original Message-----
>From: Draco Associates Ltd [mailto:jmail@d...]
>Sent: Wednesday, March 28, 2001 10:05 PM
>To: Code Clinic
>Subject: Re: Anyone knowledgable in MAPI??? HELP!
>Mr./Ms. Prentice, do you *have* to use MAPI?
>I send messages with CDO-NTS using the following script.  The only
>thing you're doing in your MAPI code that the CDO code doesn't do for
>you is resolve the addresses to your address book.
>This doesn't require MS Exchange.
>NOTE that the object must be destroyed and re-created for each message
>if you're sending more than one.  I use this to broadcast messages to
>hundreds of subscribers at http://www.conservativeforum.org.
>BTW, do you really want to pack everything you're doing into the one
>procedure?  You might want to at least separate your data retrieval
>from your mail sending code, and pass the data to your mail sending
>code in a procedure call.
>Set objMailer = Server.CreateObject("CDONTS.NewMail")
>With objMailer
>  .From = strYourAddress
>  .To = strTheirAddress
>  .Subject = strSubject
>  If [recipient wants HTML mail] Then
>   .BodyFormat = 0 ' CdoBodyFormatHTML
>   .MailFormat = 0 ' CdoMailFormatMime
>  Else
>   .BodyFormat = 1 ' CdoBodyFormatText
>   .MailFormat = 1 ' CdoMailFormatText
>  End If
>  .Body = strMessageBody
>  .Send
>End With
>Set objMailer = Nothing
>----- Original Message -----
>From: <jprentice@e...>
>To: "Code Clinic" <proasp_codeclinic@p...>
>Sent: Wednesday, March 28, 2001 6:46 PM
>Subject: Anyone knowledgable in MAPI??? HELP!
> > The following code was taken from the Microsoft site, but I want to
> > able to modify it using ASP/VBScript instead of Visual Basic.  How
>do I do
> > this?  I tried and eventually got error-free, but nothing happens
> > screen). Alternatively, if anyone knows a script that uses MAPI in
>an ASP
> > page,  please pass it along.  HELP!
>SoftArtisans helps developers build robust, scalable Web applications!
>Excel Web reports, charts: http://www.softartisans.com/excelwriter.html
>File uploads: http://www.softartisans.com/saf.html
>Transactional file management: http://www.softartisans.com/saf1.html
>Scalability: http://www.softartisans.com/saxsession.html
>ASPstudio value pack: http://www.softartisans.com/aspstudiosuite.html

Robert Chartier
Author, AspFree.com

  Return to Index