473,805 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SendObject Woes

jmr
Hi

- I made a macro to send a report as an attachment to an e-mail in Access
97

- I got the macro to work on WinMe with Netscape as long as the To: field
was not filled in.

- I just rebuilt a Dell laptop with WinXP Professional with Outlook
Express. I installed Access and tried the macro, but the error message
below was the result.

- Before rebuilding it, I had tried it with Access2002 and Outlook
Express on WinXP and it worked fine.

Error Message: "Microsoft Access Can't Open the Mail Session. Check Your
Mail Application to Make Sure That It's Working Properly."
Q283173 http://support.microsoft.com/default...b;en-us;283173

- I tried the hyperlink mailto and it works fine on all systems:
cmdEMail.Hyperl inkAddress = "mailto: " & Me!txtEmailName

Has anyone else had troubles with SendObject and found a solution?
Ideally, I want to use vba to send out a bunch of e-mails to employees
with their pay stub as an attachment. I can make everything else work
except the send object.
Nov 12 '05 #1
7 5910
Have you tried the fix that is shown in the KB article you included as a reference?
_______________ _______________ _______________ ___________

"jmr" <jmr1.DelT_his@ DelT_his.vianet .ca> wrote in message
news:op******** ******@news.via net.ca...
Hi

- I made a macro to send a report as an attachment to an e-mail in Access
97

- I got the macro to work on WinMe with Netscape as long as the To: field
was not filled in.

- I just rebuilt a Dell laptop with WinXP Professional with Outlook
Express. I installed Access and tried the macro, but the error message
below was the result.

- Before rebuilding it, I had tried it with Access2002 and Outlook
Express on WinXP and it worked fine.

Error Message: "Microsoft Access Can't Open the Mail Session. Check Your
Mail Application to Make Sure That It's Working Properly."
Q283173 http://support.microsoft.com/default...b;en-us;283173

- I tried the hyperlink mailto and it works fine on all systems:
cmdEMail.Hyperl inkAddress = "mailto: " & Me!txtEmailName

Has anyone else had troubles with SendObject and found a solution?
Ideally, I want to use vba to send out a bunch of e-mails to employees
with their pay stub as an attachment. I can make everything else work
except the send object.
Nov 12 '05 #2
jmr
Yes, I followed all steps in the article, but the registry
entry did not exist on my computer.

On Sat, 25 Oct 2003 13:35:28 -0700, Tom Wickerath
<AO************ ***********@com cast.net> wrote:
Have you tried the fix that is shown in the KB article you included as a
reference?
_______________ _______________ _______________ ___________

"jmr" <jmr1.DelT_his@ DelT_his.vianet .ca> wrote in message
news:op******** ******@news.via net.ca...
Hi

- I made a macro to send a report as an attachment to an e-mail in
Access
97

- I got the macro to work on WinMe with Netscape as long as the To:
field
was not filled in.

- I just rebuilt a Dell laptop with WinXP Professional with Outlook
Express. I installed Access and tried the macro, but the error message
below was the result.

- Before rebuilding it, I had tried it with Access2002 and Outlook
Express on WinXP and it worked fine.

Error Message: "Microsoft Access Can't Open the Mail Session. Check
Your
Mail Application to Make Sure That It's Working Properly."
Q283173 http://support.microsoft.com/default...b;en-us;283173

- I tried the hyperlink mailto and it works fine on all systems:
cmdEMail.Hyperl inkAddress = "mailto: " & Me!txtEmailName

Has anyone else had troubles with SendObject and found a solution?
Ideally, I want to use vba to send out a bunch of e-mails to employees
with their pay stub as an attachment. I can make everything else work
except the send object.


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 12 '05 #3
Try creating this key as a new entry in your registry.
_______________ _______________ _______________ ___________

"jmr" <jmr1.DelT_his@ DelT_his.vianet .ca> wrote in message
news:op******** ******@news.via net.ca...
Yes, I followed all steps in the article, but the registry
entry did not exist on my computer.

On Sat, 25 Oct 2003 13:35:28 -0700, Tom Wickerath
<AO************ ***********@com cast.net> wrote:
Have you tried the fix that is shown in the KB article you included as a
reference?
_______________ _______________ _______________ ___________

"jmr" <jmr1.DelT_his@ DelT_his.vianet .ca> wrote in message
news:op******** ******@news.via net.ca...
Hi

- I made a macro to send a report as an attachment to an e-mail in
Access
97

- I got the macro to work on WinMe with Netscape as long as the To:
field
was not filled in.

- I just rebuilt a Dell laptop with WinXP Professional with Outlook
Express. I installed Access and tried the macro, but the error message
below was the result.

- Before rebuilding it, I had tried it with Access2002 and Outlook
Express on WinXP and it worked fine.

Error Message: "Microsoft Access Can't Open the Mail Session. Check
Your
Mail Application to Make Sure That It's Working Properly."
Q283173 http://support.microsoft.com/default...b;en-us;283173

- I tried the hyperlink mailto and it works fine on all systems:
cmdEMail.Hyperl inkAddress = "mailto: " & Me!txtEmailName

Has anyone else had troubles with SendObject and found a solution?
Ideally, I want to use vba to send out a bunch of e-mails to employees
with their pay stub as an attachment. I can make everything else work
except the send object.


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 12 '05 #4
jmr
I added the key, but I did not have any values to
put into it. With just adding the key, the problem
was not solved. I still get the "Microsoft Access
Can't Open the Mail Session. Check Your Mail
Application to Make Sure That It's Working Properly."
error message.

Does anyone know what values are supposed to be
under the key?
On Mon, 27 Oct 2003 09:20:53 -0800, Tom Wickerath
<AO************ ***********@com cast.net> wrote:
Try creating this key as a new entry in your registry.
_______________ _______________ _______________ ___________

"jmr" <jmr1.DelT_his@ DelT_his.vianet .ca> wrote in message
news:op******** ******@news.via net.ca...
Yes, I followed all steps in the article, but the registry
entry did not exist on my computer.

On Sat, 25 Oct 2003 13:35:28 -0700, Tom Wickerath
<AO************ ***********@com cast.net> wrote:
Have you tried the fix that is shown in the KB article you included as a
reference?
_______________ _______________ _______________ ___________

"jmr" <jmr1.DelT_his@ DelT_his.vianet .ca> wrote in message
news:op******** ******@news.via net.ca...
Hi

- I made a macro to send a report as an attachment to an e-mail in
Access
97

- I got the macro to work on WinMe with Netscape as long as the To:
field
was not filled in.

- I just rebuilt a Dell laptop with WinXP Professional with Outlook
Express. I installed Access and tried the macro, but the error message
below was the result.

- Before rebuilding it, I had tried it with Access2002 and Outlook
Express on WinXP and it worked fine.

Error Message: "Microsoft Access Can't Open the Mail Session. Check
Your
Mail Application to Make Sure That It's Working Properly."
Q283173
http://support.microsoft.com/default...b;en-us;283173

- I tried the hyperlink mailto and it works fine on all systems:
cmdEMail.Hyperl inkAddress = "mailto: " & Me!txtEmailName

Has anyone else had troubles with SendObject and found a solution?
Ideally, I want to use vba to send out a bunch of e-mails to employees
with their pay stub as an attachment. I can make everything else work
except the send object.



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 12 '05 #5
Oops, I had not gone back to the KB article....sinc e it states to delete the key, my
earlier suggestion to creating this key really makes no sense.

_______________ _______________ ________

"jmr" <jmr1.DelT_his@ DelT_his.vianet .ca> wrote in message
news:op******** ******@news.via net.ca...

I added the key, but I did not have any values to
put into it. With just adding the key, the problem
was not solved. I still get the "Microsoft Access
Can't Open the Mail Session. Check Your Mail
Application to Make Sure That It's Working Properly."
error message.

Does anyone know what values are supposed to be
under the key?

_______________ _______________ ________

On Mon, 27 Oct 2003 09:20:53 -0800, Tom Wickerath
<AO************ ***********@com cast.net> wrote:

Try creating this key as a new entry in your registry.
_______________ _______________ ________

"jmr" <jmr1.DelT_his@ DelT_his.vianet .ca> wrote in message
news:op******** ******@news.via net.ca...
Yes, I followed all steps in the article, but the registry
entry did not exist on my computer.
_______________ _______________ ________

On Sat, 25 Oct 2003 13:35:28 -0700, Tom Wickerath
<AO************ ***********@com cast.net> wrote:

Have you tried the fix that is shown in the KB article you included as a
reference?
_______________ _______________ ________

"jmr" <jmr1.DelT_his@ DelT_his.vianet .ca> wrote in message
news:op******** ******@news.via net.ca...

Hi

- I made a macro to send a report as an attachment to an e-mail in Access 97
- I got the macro to work on WinMe with Netscape as long as the To: field was not
filled in.

- I just rebuilt a Dell laptop with WinXP Professional with Outlook
Express. I installed Access and tried the macro, but the error message
below was the result.

- Before rebuilding it, I had tried it with Access2002 and Outlook
Express on WinXP and it worked fine.

Error Message: "Microsoft Access Can't Open the Mail Session. Check Your Mail Application
to Make Sure That It's Working Properly."Q2831 73
http://support.microsoft.com/default...b;en-us;283173

- I tried the hyperlink mailto and it works fine on all systems:
cmdEMail.Hyperl inkAddress = "mailto: " & Me!txtEmailName

Has anyone else had troubles with SendObject and found a solution?
Ideally, I want to use vba to send out a bunch of e-mails to employees
with their pay stub as an attachment. I can make everything else work
except the send object.
Nov 12 '05 #6
jmr
Here's the scoop

I tried to install a mapi compliant email program,
eudora 6, but the error still came up.
Next I installed Outlook from the Office 97 disk
and the error is gone, but now I have to figure out
Microsoft Exchange, but when I try to get the
Microsoft knowledge base article on that, the
knowledge base search page is down.

I may have to install Microsoft Exchange or other
stuff, but I will tackle that later in the day.

Thanks for all your ideas.

On Mon, 27 Oct 2003 19:33:30 -0800, Tom Wickerath
<AO************ ***********@com cast.net> wrote:
Oops, I had not gone back to the KB article....sinc e it states to delete
the key, my
earlier suggestion to creating this key really makes no sense.

_______________ _______________ ________

"jmr" <jmr1.DelT_his@ DelT_his.vianet .ca> wrote in message
news:op******** ******@news.via net.ca...

I added the key, but I did not have any values to
put into it. With just adding the key, the problem
was not solved. I still get the "Microsoft Access
Can't Open the Mail Session. Check Your Mail
Application to Make Sure That It's Working Properly."
error message.

Does anyone know what values are supposed to be
under the key?

_______________ _______________ ________

On Mon, 27 Oct 2003 09:20:53 -0800, Tom Wickerath
<AO************ ***********@com cast.net> wrote:

Try creating this key as a new entry in your registry.
_______________ _______________ ________

"jmr" <jmr1.DelT_his@ DelT_his.vianet .ca> wrote in message
news:op******** ******@news.via net.ca...
Yes, I followed all steps in the article, but the registry
entry did not exist on my computer.
_______________ _______________ ________

On Sat, 25 Oct 2003 13:35:28 -0700, Tom Wickerath
<AO************ ***********@com cast.net> wrote:

Have you tried the fix that is shown in the KB article you included as a
reference?
_______________ _______________ ________

"jmr" <jmr1.DelT_his@ DelT_his.vianet .ca> wrote in message
news:op******** ******@news.via net.ca...

Hi

- I made a macro to send a report as an attachment to an e-mail in
Access 97
- I got the macro to work on WinMe with Netscape as long as the To:
field was not
filled in.

- I just rebuilt a Dell laptop with WinXP Professional with Outlook
Express. I installed Access and tried the macro, but the error message
below was the result.

- Before rebuilding it, I had tried it with Access2002 and Outlook
Express on WinXP and it worked fine.

Error Message: "Microsoft Access Can't Open the Mail Session. Check Your
Mail Application
to Make Sure That It's Working Properly."Q2831 73
http://support.microsoft.com/default...b;en-us;283173

- I tried the hyperlink mailto and it works fine on all systems:
cmdEMail.Hyperl inkAddress = "mailto: " & Me!txtEmailName

Has anyone else had troubles with SendObject and found a solution?
Ideally, I want to use vba to send out a bunch of e-mails to employees
with their pay stub as an attachment. I can make everything else work
except the send object.


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 12 '05 #7
I've been having problems with SendObject not working with Mozilla Mail. I
scrapped together this code, which is a suitable drop-in replacement for my needs.

This is based on code I found here:
http://nela.mednet.md/others/send_mail.shtml

KC
----------------------------------------------------------------------

Function SendEmail(AddrT o, Optional AddrCc, Optional AddrBcc, _
Optional Subject, Optional Body, Optional ByVal Attachments)
Dim objSession As Object, objMessage As Object
Dim i As Integer, n As Integer, Addr
On Error GoTo error_sendMsg

Set objSession = CreateObject("M SMAPI.MAPISessi on")
Set objMessage = CreateObject("M SMAPI.MAPIMessa ges")

objSession.Sign On
objMessage.Sess ionID = objSession.Sess ionID
objMessage.Comp ose
objMessage.MsgI ndex = -1

For n = 1 To 3
Select Case n
Case 1: Addr = AddrTo
Case 2: Addr = AddrCc
Case 3: Addr = AddrBcc
End Select

If Not IsMissing(Addr) Then
If Not isBlank(Addr) Then
If Not IsArray(Addr) Then
Addr = Replace(Addr, ";", ",")
Addr = Split(Addr, ",")
End If
For i = 0 To UBound(Addr)
If Not isBlank(Addr(i) ) Then
objMessage.reci pindex = objMessage.Reci pCount
objMessage.Reci pAddress = Addr(i)
objMessage.Reci pType = n
objMessage.Addr essResolveUI = False
End If
Next i
End If
End If
Next n

If Not IsMissing(Subje ct) Then objMessage.MsgS ubject = Nz(Subject, "")
If Not IsMissing(Body) Then objMessage.MsgN oteText = Nz(Body, "")
If Not IsMissing(Attac hments) Then
If IsArray(Attachm ents) Then
For i = 0 To UBound(Attachme nts)
If Not isBlank(Attachm ents(i)) Then
objMessage.Atta chmentIndex = i
objMessage.Atta chmentPathName = Attachments(i)
End If
Next
ElseIf Not IsNull(Attachme nts) Then
objMessage.Atta chmentPathName = Attachments
End If
End If

objMessage.Send True
objSession.Sign Off

On Error GoTo 0
SendEmail = True
Exit Function

error_sendMsg:
On Error GoTo 0
SendEmail = False
End Function

Function isBlank(v)
On Error GoTo Problem
isBlank = IsNull(v) Or v = ""
Exit Function
Problem:
isBlank = True
End Function

-------------------------------------------------------

jmr wrote:
Hi

- I made a macro to send a report as an attachment to an e-mail in
Access 97

- I got the macro to work on WinMe with Netscape as long as the To:
field was not filled in.

- I just rebuilt a Dell laptop with WinXP Professional with Outlook
Express. I installed Access and tried the macro, but the error message
below was the result.

- Before rebuilding it, I had tried it with Access2002 and Outlook
Express on WinXP and it worked fine.

Error Message: "Microsoft Access Can't Open the Mail Session. Check
Your Mail Application to Make Sure That It's Working Properly."
Q283173 http://support.microsoft.com/default...b;en-us;283173

- I tried the hyperlink mailto and it works fine on all systems:
cmdEMail.Hyperl inkAddress = "mailto: " & Me!txtEmailName

Has anyone else had troubles with SendObject and found a solution?
Ideally, I want to use vba to send out a bunch of e-mails to employees
with their pay stub as an attachment. I can make everything else work
except the send object.


Nov 12 '05 #8

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

Similar topics

0
2368
by: Bret Shortall | last post by:
Using the SENDOBJECT action command in a Macro works fine if you hard code in their email address. SENDOBJECT TO bret@emailaddress.com SUBJECT This is the Subject line of the email My problem is that the email address is stored in a field in a table. In a MACRO, how can I put the field name in the TO value? For
0
457
by: jmr | last post by:
Hi I checked out the other messages first, but I only found one for SendObjects, but it was in German, so... - I made a macro to send a report as an attachment to an e-mail in Access 97 - I got the macro to work on WinMe as long as the To: field was not filled in.
1
9928
by: Alfred | last post by:
Hi I am using access 2002 1.0 I want to email a word or html file using the docmd.sendobject The document must be send as a attachment. 2.0 Second I would like to tell the Docmd.Sendobject to take the Info in a html or word document and to use it as the body of the email message. Is this possible. How can I do this. Thanks Alfred
8
5089
by: Andy Kasotia | last post by:
Warning message in Outlook 2003 while using SendObject. When i try to use sendobject to send an email, a warning massage pops up, saying that "Outlook is trying to send an email.......if this is a virus, you should choose no." Can I do away with this message and have it send the email without user intervention? I wasn't able to find any optional parameters for the SendObject that
9
1854
by: bobdydd | last post by:
Hullo Everybody I am trying to send a email from WITHIN Access 2000 with a report attached that is generated WITHIN Access in the normal way, but all the help examples I have seen uses an external file like C:\test.txt I have been using: DoCmd.SendObject acReport, stDocName, acFormatRTF, But when the message body is more than 70 characters long (random), it
1
1518
by: Dave Holmes | last post by:
please can anybody help with sendobject command it works on some computers and not others. (Same App) regardless of OS I get message The command or Action isn't available now I am trying to send e-mails (text) Thanks in advance
3
1665
by: Fred Zuckerman | last post by:
Hello All, I had written a quick email procedure for a client that uses DoCmd.SendObject. However they have the SR-1 version of Access 2K. They do not have the SP-3 upgrade. The procedure does not work all of the time (it seems to fail on long emails). The procedure works fine on my computers that have the SP-3 upgrade. I read about the SP-3 upgrade and it evidently repairs some SendObject bugs. Unfortunately, the client has another...
2
846
by: Andy_Khosravi | last post by:
I posted this question about two days ago, but for some reason it never actually got put up. I couldn't' find it with searches, so I am re-posting it now. I apologize if this is a double post. Hello, I've a bit of a problem with the SendObject command in VBA. On my computer when I execute the below code, a new memo is generated in Lotus Notes with an attachment labeled "Benefit Issues Log.rtf". (Benefit Issues Log is the name of the...
0
1409
by: (PeteCresswell) | last post by:
Another thread got me going on SendObject. Works like a champ for emailing somebody a .SNP of a report as in: DoCmd.SendObject acSendReport, "rptMaturities", "Snapshot Format", "pCresswell", , , "Maturities", "Maturities Report attached...", False But I do lot of so-called "reports" where I'm actually creating
0
9596
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10356
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10361
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10103
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7644
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4316
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
3
3006
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.