473,563 Members | 2,897 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("M API.Session")
objSession.Logo n "profileNam e"

strMsg = ".."
Set objMessage = objSession.Outb ox.Messages.Add
objMessage.Subj ect = "Customer Comment"
objMessage.Text = strMsg

Set objRecip = objMessage.Reci pients.Add
objRecip.Name = SendTo
objRecip.Type = 1 'CdoTo
objRecip.Resolv e

objMessage.Send 'showDialog:=Fa lse
objSession.Logo ff

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 4699
"Adam Kinney" <ad**@apterasof tware.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
I have an ASP application that logs into Exchange server to send email. The code looks like this:

Set objSession = CreateObject("M API.Session")
objSession.Logo n "profileNam e"

strMsg = ".."
Set objMessage = objSession.Outb ox.Messages.Add
objMessage.Subj ect = "Customer Comment"
objMessage.Text = strMsg

Set objRecip = objMessage.Reci pients.Add
objRecip.Name = SendTo
objRecip.Type = 1 'CdoTo
objRecip.Resolv e

objMessage.Send 'showDialog:=Fa lse
objSession.Logo ff

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**@apterasof tware.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
I have an ASP application that logs into Exchange server to send email. The code looks like this:

Set objSession = CreateObject("M API.Session")
objSession.Logo n "profileNam e"

strMsg = ".."
Set objMessage = objSession.Outb ox.Messages.Add
objMessage.Subj ect = "Customer Comment"
objMessage.Text = strMsg

Set objRecip = objMessage.Reci pients.Add
objRecip.Name = SendTo
objRecip.Type = 1 'CdoTo
objRecip.Resolv e

objMessage.Send 'showDialog:=Fa lse
objSession.Logo ff

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
4939
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 windows 2000/NT server. For a given user (who is Windows NT user) in the same Windows 2000
1
5327
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 works except that I have two warning nuisances: 1) Program is trying to access email Addresses you have stored in Outlook. Allow access for ... 2) A...
0
3461
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* PC's the code runs fine, but on others, the code can execute the logon portion of the code just fine, but when it tries to create a message, I get...
1
3397
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
2833
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
2180
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 current machine. The service then creates a new MAPI session and then attempts to log on to the session using the current MS Exchange profile on...
1
2845
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 on several user pc's and I don't know why. I've asked our PC Services group what they changed on the pc's that this does not work on and they say...
3
3414
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 save an MApi.Message (which represents an email) object
3
3603
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 save an MApi.Message object (which represents an
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.