MAPI Question
MAPI Question
MAPI Question
MAPI Question
MAPI Question
MAPI Question MAPI Question MAPI Question MAPI Question MAPI Question MAPI Question MAPI Question MAPI Question
MAPI Question MAPI Question
MAPI Question
Go Back  Xtreme Visual Basic Talk > > > MAPI Question


Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2001, 11:25 AM
roger roger is offline
Centurion
 
Join Date: Aug 2000
Posts: 91
Question MAPI Question


Hi, I'm trying to use MAPI Controls to automate sending emails.
The computers that the app will be installed on have outlook and there are two profiles, the first is personal mailbox, and the second is global which the application should use to send the emails.
The following is the code I used. But I get an error 32003 "Login has failed" upon send statement.

mapiSes.DownLoadMail = False
mapiSes.LogonUI = False
mapiSes.username = username
mapiSes.Password = Password
mapiSes.SignOn
If mapiSes.SessionID = 0 Then
MsgBox "ERROR"
End If
mapiSes.NewSession = True
mapiMsg.SessionID = mapiSes.SessionID
mapiMsg.MsgIndex = -1 ' set -1 compose event to work
mapiMsg.Compose
mapiMsg.AddressResolveUI = False
mapiMsg.MsgSubject = "TEST"
mapiMsg.MsgNoteText = "TEST"
mapiMsg.RecipIndex = 0
mapiMsg.RecipType = 1
mapiMsg.RecipAddress = "username@email.com"
mapiMsg.ResolveName
mapiMsg.Send ---> ERROR Occurs HERE
mapiSes.SignOff
--------------------------------------------------
mapiSes and mapiMsg are mapi Controls.
I get "Error 32003 -- Login has Failed." in the Send statement.
Can someone help me out here. I need help ASAP.
Thanks Guys.
Roger


"Great Ideas need Landing Gears as well as Wings"
Reply With Quote
  #2  
Old 09-06-2001, 11:59 AM
roger roger is offline
Centurion
 
Join Date: Aug 2000
Posts: 91
Default Re: MAPI Question

Now I get a different error msg, Error 32002 "Unspecified Error has occurred" in the same line.

Please help
Roger

"Great Ideas need Landing Gears as well as Wings"
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
MAPI Question
MAPI Question
MAPI Question MAPI Question
MAPI Question
MAPI Question
MAPI Question MAPI Question MAPI Question MAPI Question MAPI Question MAPI Question MAPI Question
MAPI Question
MAPI Question
 
MAPI Question
MAPI Question
 
-->