472,373 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

DoCmd.SendObject leaves recipient field blank?

I am trying to execute a DoCmd.SendObject command to produce an email
message from Access 2000. The command produces the email message, but
the To:, CC: and BCC: fields are blank. The subject field and content
come across fine.

I can verify that the information isn't leaving Access. My client is
experiencing the same problem. I tried it on two different computers;
same problem.
Nov 12 '05 #1
7 4524
I would appreciate some assistance on this.
Nov 12 '05 #2
Could you please include some code that fills in the To field of the
DoCmd.SendObject? Usually people on this NG tend not to rely upon the
"it didn't work" kind of description but like to see the code that fails.

Pavel

Jay Bienvenu wrote:

I am trying to execute a DoCmd.SendObject command to produce an email
message from Access 2000. The command produces the email message, but
the To:, CC: and BCC: fields are blank. The subject field and content
come across fine.

I can verify that the information isn't leaving Access. My client is
experiencing the same problem. I tried it on two different computers;
same problem.

Nov 12 '05 #3
Pavel Romashkin <pa*************@hotmail.com> wrote in message news:<3F***************@hotmail.com>...
Could you please include some code that fills in the To field of the
DoCmd.SendObject?


DoCmd.SendObject , , acFormatTXT, "me@example.com", "me@example.com",
"me@example.com", ".", strShortMessage

-- Jay Bienvenu
Nov 12 '05 #4
I don't see problems with the code, works just fine on my machine in
immediate window. What do you see in the message window that pops up
once the DoCmd.SendObject is executed? If To: field is blank, I'd
suspect a MAPI client problem.
I have experienced random message loss in Access 2000 and Outlook
Express 5.5 as MAPI client. However, Access 2002 worked fine with OE5.5
and 6. I read that people complain about OE MAPI implementation, so this
may be the problem if this is what you are using.

Pavel

Jay Bienvenu wrote:

Pavel Romashkin <pa*************@hotmail.com> wrote in message news:<3F***************@hotmail.com>...
Could you please include some code that fills in the To field of the
DoCmd.SendObject?


DoCmd.SendObject , , acFormatTXT, "me@example.com", "me@example.com",
"me@example.com", ".", strShortMessage

-- Jay Bienvenu

Nov 12 '05 #5
He's using 6.0.
Nov 12 '05 #6
Since it's pretty clear that there's nothing wrong with the code, how
can I fix the problem? How can I explain to the client what the
problem is and how to fix it?
Nov 12 '05 #7
Sorry for the late reply - I was away.
In your case the simplest solution seems to be to form the URL
programatically - I am not even sure why would you send a MAPI request
to an interpreter program like Yahoo Mail. Might as well talk straight
to IE.
As far as using OE with A2000, I don't even know what to recommend. I
read quite a bit on this subject, as I still can't get my own client's
DB to E-mail consistently fom A2000 and OE, and I think I will try to
use Outlook on their system to mail for me. Outlook (not Outlook
Express) is said to be a much better MAPI compatible than OE.

Pavel

Jay Bienvenu wrote:

Pavel Romashkin <pa*************@hotmail.com> wrote in message news:<3F***************@hotmail.com>...
I don't see problems with the code, works just fine on my machine in
immediate window. What do you see in the message window that pops up
once the DoCmd.SendObject is executed? If To: field is blank, I'd
suspect a MAPI client problem.


I didn't think that it was anything wrong with the DoCmd.SendObject
command itself. I use the Yahoo Mail program as my default email
"client." It sends a URL to IE that goes to Yahoo Mail. When I issue
this command in the Immediate window:

DoCmd.SendObject , , acFormatTXT, "me@example.com", "me@example.com",
"me@example.com", ".", "blah blah blah"

Yahoo Mail sends this to IE:

http://us.f96.mail.yahoo.com/ym/Comp....redir=ymmapi3

Notice there's nothing after "To=". However, if I type
"mailto:me@example.com" in the Address bar of IE, it produces this:

http://us.f96.mail.yahoo.com/ym/Co**....redir=ymmapi2

Clearly, the problem is in what's going from Access 2000 to Yahoo
Mail.

I'll ask my client what version of Outlook he's using. Using Access
2002 isn't an option at this point. We are going to have to find a way
to get around the problem, because as long as it does this, the
solution doesn't work.

-- Jay Bienvenu

Nov 12 '05 #8

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

Similar topics

1
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...
3
by: Baz'noid | last post by:
Hi all, With the recent postal strikes here in the UK i'm trying to persuade access to email reports at the touch of a button. I've not been able to figure out how to filter the report - when i...
3
by: Lauren Quantrell | last post by:
I get the prompt from Outlook Express when trying to send an e-mail using DoCmd.SendObject in MS Access2000: "A program is attempting to send the following e-mail message on your behalf:" To:...
5
by: Tom Louchbaum | last post by:
When I preview my Access 2000 Report it looks fine. When I Email the report using DoCmd.SendObject acSendReport, "Report", acFormatRTF, "To Address", , , "Subject", , False the resulting...
4
by: Richard Cleaveland | last post by:
We have an Access 97 application which uses the DoCmd.SendObject method to send emails when a command button is activated. Our standard email client is Eudora. On all but one machine we have no...
0
by: TR | last post by:
Hi, Just noticed something unusual. If I use Docmd.SendObject in Access 97, access will open up Lotus Notes to send the email. here is the code: DoCmd.SendObject , , , "SomeBody@Somewhere.com",...
1
by: Salad | last post by:
I am using Netscape 7.2 as the e-mail client. I can stuff the To, CC, and BCC fields with valid recipients in my application. When I execute the command SendObject I have the option to Edit or...
1
by: jerry.ranch | last post by:
I collect information from my clients with an xls file I import the xls data into my access table. I don't have them put info directly into Access, because, despite the drop downs I have for...
2
by: Nita | last post by:
Hi, I have no background in scripting (barr HTML) and need some help with hashing out a VB script for a database I'm working on. What my goal is, is to have a single record of a form which is...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.

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.