473,403 Members | 2,293 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,403 software developers and data experts.

WinXP-A97: Can't start mailsession

Hi all,

In the past I have had this issue with sendobject not working with A97.
Often it was related to more Access versions installed.
IME SendObject would only work with the latest version.

But I never had the issue one of my clients is having now:
-- Clean install of Windows XP home SP2.
-- Clean install of Access97.
-- Trying to sendmail: Message "Can't start mailsession ..."

Btw: Using Outlook Express here.
No CDonts available ... only OE
In fact this is a brand nwe PC with *only* Windows XPHome SP2 installed and Access97.
The only software that is needed on this PC is this Access-app.
The ability to send mail is very essential for this app...

I fear I need to install A2k (this also means licences...) to get the mail from Access started on these PC's.

Any ideas?
Thanks.

Arno R
Nov 13 '05 #1
4 1295
Arno R wrote:
Btw: Using Outlook Express here.
No CDonts available ... only OE
In fact this is a brand nwe PC with *only* Windows XPHome SP2 installed and Access97.


I think Windows XP includes CDOSYS (C:\WINDOWS\System32\cdosys.dll).

Public Sub VerySimpleSendMailWithCDOSample()
' requires reference to cdosys.dll
' (Microsoft CDO for Windows 2000 library)

Dim iCfg As CDO.Configuration
Dim iMsg As CDO.Message

Set iCfg = New CDO.Configuration
Set iMsg = New CDO.Message

With iCfg.Fields
..Item(cdoSendUsingMethod) = cdoSendUsingPort
..Item(cdoSMTPServerPort) = 25
..Item(cdoSMTPServer) = "smtp.mail.yahoo.ca"
..Item(cdoSMTPAuthenticate) = cdoBasic
..Item(cdoSendUserName) = "lylefair"
..Item(cdoSendPassword) = "Password"
..Item(cdoSendEmailAddress) = "Lyle Fairfield <ly******@yahoo.ca>"
..Update
End With

With iMsg
..Configuration = iCfg
..Subject = "Test"
..To = "ly***********@aim.com"
..TextBody = "Test"
..Send
End With
End Sub

I haven't used SendObject for a long time. I find CDO faster, stronger,
better, cooler.

--
Lyle Fairfield
Nov 13 '05 #2

"Lyle Fairfield" <ly***********@aim.com> schreef in bericht news:2s******************@read2.cgocable.net...
Arno R wrote:
Btw: Using Outlook Express here.
No CDonts available ... only OE
In fact this is a brand nwe PC with *only* Windows XPHome SP2 installed and Access97.


I think Windows XP includes CDOSYS (C:\WINDOWS\System32\cdosys.dll).

Public Sub VerySimpleSendMailWithCDOSample()
' requires reference to cdosys.dll
' (Microsoft CDO for Windows 2000 library)

Dim iCfg As CDO.Configuration
Dim iMsg As CDO.Message

Set iCfg = New CDO.Configuration
Set iMsg = New CDO.Message

With iCfg.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServerPort) = 25
.Item(cdoSMTPServer) = "smtp.mail.yahoo.ca"
.Item(cdoSMTPAuthenticate) = cdoBasic
.Item(cdoSendUserName) = "lylefair"
.Item(cdoSendPassword) = "Password"
.Item(cdoSendEmailAddress) = "Lyle Fairfield <ly******@yahoo.ca>"
.Update
End With

With iMsg
.Configuration = iCfg
.Subject = "Test"
.To = "ly***********@aim.com"
.TextBody = "Test"
.Send
End With
End Sub

I haven't used SendObject for a long time. I find CDO faster, stronger,
better, cooler.

--
Lyle Fairfield


Thanks Lyle!
I will try this cdosys.dll. I guess one can send attachments also?
If it works it will be a solution for some new PC's the client has purchased.

The 'old' shops (client has a couple of shoe-shops) will continue using Win '98 ... for quite a while
So I will need to change the code that sends the daily mail to adapt for the situation (OS).
Arggghhh.... But thanks.

Why is M$ making this so hard ? Who do they not fix some issues??
This docmd.sendmail is a disaster for a long while already isn't it ??

Arno R

Nov 13 '05 #3
One can do everything with CDO as far as sending goes, and at midnight
it turns into a pizza and a six pack of Sleeman's Cream Ale.

You could, of course, use Outlook Express in the new and in the old,
but it might give you a few headaches (yes, OE is fully programmable).

Nov 13 '05 #4
One can do everything with CDO as far as sending goes, and at midnight
it turns into a pizza and a six pack of Sleeman's Cream Ale.

You could, of course, use Outlook Express in the new and in the old,
but it might give you a few headaches (yes, OE is fully programmable).

Nov 13 '05 #5

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

Similar topics

3
by: D Denholm | last post by:
I recently installed Python 2.2 on my WinXP box. I am having problems figuring out how to create the PYTHONPATH correctly. I went to the WinXP SystemProperties > Advanced > Environment...
2
by: Eric Woudenberg | last post by:
I just installed a Python 2.3.4 Windows binary on a friend's WinXP machine (because the latest Cygwin-provided Python 2.3 build leaves out the winsound module for some reason). When I try and...
1
by: Laphan | last post by:
Hi Guys Wonder if you could help. I have set up what I thought was a standard DHTML folder view at http://www.AstraAccounts.co.uk, but the actual icons on this folder list don't get displayed...
3
by: Matthew P. Seltzer | last post by:
All- This is a bit 'out there,' but, here goes. I have copied the WinSxS folder from a WinXP box to my Win2K box. I would like to be able to apply XP control styles to my Win2K VB.NET apps. Given...
383
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a...
2
by: C Martin | last post by:
For some time, I have been using TSISOON90.dll, a free Access COM Add-in from Trigeminal Software which closes one db and opens another, plus other useful tasks. We recently installed some new...
0
by: Macadair | last post by:
I develop mid-range multi-user applications for a large site. Currently Win98 and Office97 are the standards used however we are slowly moving to WinXP. Due to the site upgrade cost, we are...
2
by: Don Leverton | last post by:
Hi Folks, I'm experiencing a problem that seems to be unique to running Access97 on Windows XP, and seems to be worse on WinXP SP2. It appears when I'm trying to import a text file. I'm...
5
by: manokumar | last post by:
hiye, i notice that some if not all of my folders in winxp pro. are set as read only and its giving me some problem with development. so as the natural thing, i unchecked the read only option and...
0
by: Alexander Stojakovic | last post by:
Werte Kollegen! I have a ASP.NET page authenticating via Integrated Security. For some reason the behaviour on the client is differing depending on the OS. I have some clients using WinXP and...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.