473,387 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MAPI.Profile Logon with ASP

I have an ASP application that logs into Exchange server to send email. The
code looks like this:

Set objSession = CreateObject("MAPI.Session")
objSession.Logon "profileName"

strMsg = ".."
Set objMessage = objSession.Outbox.Messages.Add
objMessage.Subject = "Customer Comment"
objMessage.Text = strMsg

Set objRecip = objMessage.Recipients.Add
objRecip.Name = SendTo
objRecip.Type = 1 'CdoTo
objRecip.Resolve

objMessage.Send 'showDialog:=False
objSession.Logoff

This code worked fine when the server was WinNT / Exchange 2000, now the
server has been upgraded to Windows 2003 and Exchange 2003.

Exchange Server is running on the same machine as IIS. And the error
appears to happen when the Logon is attempted.

Any ideas as to what may have changed in Windows 2003 or Exchange 2003?

Thanks,

Adam Kinney
www.adamkinney.com
Jul 19 '05 #1
2 4683
"Adam Kinney" <ad**@apterasoftware.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have an ASP application that logs into Exchange server to send email. The code looks like this:

Set objSession = CreateObject("MAPI.Session")
objSession.Logon "profileName"

strMsg = ".."
Set objMessage = objSession.Outbox.Messages.Add
objMessage.Subject = "Customer Comment"
objMessage.Text = strMsg

Set objRecip = objMessage.Recipients.Add
objRecip.Name = SendTo
objRecip.Type = 1 'CdoTo
objRecip.Resolve

objMessage.Send 'showDialog:=False
objSession.Logoff

This code worked fine when the server was WinNT / Exchange 2000, now the
server has been upgraded to Windows 2003 and Exchange 2003.

Exchange Server is running on the same machine as IIS. And the error
appears to happen when the Logon is attempted.

Any ideas as to what may have changed in Windows 2003 or Exchange 2003?

Thanks,

Adam Kinney
www.adamkinney.com

Hello Adam

I don't recommend you use MAPI. This is a client interface and will show
modal dialogs if it runs into problems, and of course, there is no one sat
at your webserver waiting to click "OK".

Use CDONTS or better yet one of the smtp components (some of which are free)

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.free-helpdesk.com - Completely free help desk software !
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
Jul 19 '05 #2
"Adam Kinney" <ad**@apterasoftware.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have an ASP application that logs into Exchange server to send email. The code looks like this:

Set objSession = CreateObject("MAPI.Session")
objSession.Logon "profileName"

strMsg = ".."
Set objMessage = objSession.Outbox.Messages.Add
objMessage.Subject = "Customer Comment"
objMessage.Text = strMsg

Set objRecip = objMessage.Recipients.Add
objRecip.Name = SendTo
objRecip.Type = 1 'CdoTo
objRecip.Resolve

objMessage.Send 'showDialog:=False
objSession.Logoff

This code worked fine when the server was WinNT / Exchange 2000, now the
server has been upgraded to Windows 2003 and Exchange 2003.

Exchange Server is running on the same machine as IIS. And the error
appears to happen when the Logon is attempted.

Any ideas as to what may have changed in Windows 2003 or Exchange 2003?

Thanks,

Adam Kinney
www.adamkinney.com


What error are you seeing?

Lee.

--
___________________________________

Outlook Web Access for PDA and WAP:
www.leederbyshire.com
email a@t leederbyshire d.0.t c.0.m
___________________________________

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Suganthi | last post by:
Hi, I have a specific problem while using MAPI for sending the emails from my application. My requirement is as follows. My application will be running either as a service or a process in a...
1
by: Jay McGrath | last post by:
Help - trying to send a simple text email with with as little user intervention. I am trying to create a button in my Access application that will automatically send a simple text email. It...
0
by: DC Fan | last post by:
I am wirting an application in Access 2002 (XP) that needs to send email. Since I hate the dialog boxes you get from all the Outlook warning messages, I am trying to use the MAPI object. On *SOME*...
1
by: Michael Zino | last post by:
Hi All, I'm having problems with ex MAPI when its running from an NT service. This is the code i'm running in the log on process. Please... if you can see ANY problem, let me know....
0
by: Pat Sinnott | last post by:
Hi, I am attempting to create a mapi session with an ASP.net page with the following code: Dim oSess As New MAPI.Session() oSess.Logon("MS Exchange Settings")
0
by: PhilHip | last post by:
I've written a Windows service in VB.Net that accesses the global address list to obtain all the entries to store them in a local database. The GAL is accessed using the MS Exchange profile on the...
1
by: bobh | last post by:
Hi All, I've been using this function which I got from here for some time now in two of my AccessXP multiusers applications and it has worked without issue until lately it has stopped functioning...
3
by: Nabil | last post by:
Hi, This is the first time I've posted something on here. I've looked around the web for hours and failed miserably. Hopefully someone out there would be able to help. I'm trying to...
3
by: Nabil | last post by:
Hi, This is the first time I've posted something on here. I've looked around the web for hours and failed miserably. Hopefully someone out there would be able to help. I'm trying to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.