Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 22nd, 2007, 11:46 AM
Registered User
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mapi problem

Hello everbody

I have such problem.

Via my application I tried to send mail trough MAPI component. This is in play. But before the sending I connected to Oracle trough DAO object I get message "error 32002 unspecific failure occured".

I need to displayed new mesagw window of default mail client therefore Im using MAPI. These problems are founded only on some computers.

My source code is:

MAPISession1.SignOn
With MAPIMessages1
    .SessionID = MAPISession1.SessionID
    .Compose
    .RecipIndex = iIndex
    .RecipDisplayName = cToString(iIndex)
    '.RecipAddress = cToString(iIndex)

        .MsgSubject = txtSubject.Text
    .MsgNoteText = txtBody.Text
    '.Send True
    .Send False
End With
MAPISession1.SignOff

Can somebody help me? Thanks

 
Old February 22nd, 2007, 11:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there... a little google since to be the solution...

http://support.microsoft.com/?scid=k...2708&x=11&y=14

also you have the same problem with attachs...

you have commented the line with the address.. is this the code that is working???

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
 
Old February 23rd, 2007, 02:05 AM
Registered User
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi gbianchi

But I get this error only when I connected this application to Oracle trough DAO objects. Whitout connection is allrights. This problem is appearing only on some PCs.

 
Old February 23rd, 2007, 09:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

then maybe mapi is not installed right??

are you getting data from oracle?? from your code oracle doesn't have anything to do with MAPI...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
 
Old February 23rd, 2007, 10:18 AM
Registered User
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

No I only create connection and successfully. But then I dont send mails on some pcs. Whitout connection no problem with sending.
Even if I disconnect I still dont send mails. But on some PCs is in Play.

 
Old February 23rd, 2007, 10:33 AM
Registered User
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

No I only create connection and successfully. But then I dont send mails on some pcs. Whitout connection no problem with sending.
Even if I disconnect I still dont send mails. But on some PCs is in Play.

I found that when I sent it with Mapimessage.send True - problem but
when I send it with False - no problem.

I my case i need to dipslay message for follow editing






Similar Threads
Thread Thread Starter Forum Replies Last Post
MAPI BobR VB Components 0 February 7th, 2005 07:47 PM
MAPI help kane C++ Programming 2 October 13th, 2004 12:41 AM
:: Problem with MAPI Object :: waqasj Classic ASP Basics 4 June 18th, 2004 12:33 AM
MAPI alantodd Pro VB 6 2 June 12th, 2003 09:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.