SendObject command doesn't automatically send e-mail

J

Jerry Schiffelbein

In Access 2002-2003, even though I set "edit e-mail" to false, the message is
still opening in a new window (which requires that I click on send) rather
than automatically sending the e-mail. Since I will be sending several dozen
e-mails, it would not work to have to click on each message to send it.

Thanks!

Jerry
 
J

Jerry Schiffelbein

Sorry. I should have specified that I'm using MSN software, not Outlook;
thus I'm not getting that particular Outlook message. What it is doing is
creating the message and then opening it as a separate window rather than
just sending the e-mail.

Thanks!

Jerry
 
R

Rick Brandt

Jerry said:
Sorry. I should have specified that I'm using MSN software, not Outlook;
thus I'm not getting that particular Outlook message. What it is doing is
creating the message and then opening it as a separate window rather than
just sending the e-mail.

One of the arguments for SendObject controls that.
 
J

Jerry Schiffelbein

Yes, that is correct. I set the "edit e-mail" command to False; however,
the e-mail was not sent automatically, so the problem still persists.

Jerry
 
R

Rick Brandt

Jerry said:
Yes, that is correct. I set the "edit e-mail" command to False; however,
the e-mail was not sent automatically, so the problem still persists.

Post your exact code.
 
J

Jerry Schiffelbein

Here's the code, Rick:

DoCmd.SendObject , , acFormatTXT, "(e-mail address removed)", , , "Test
Email", "Sending test e-mail message", -1

Thanks again!

Jerry
 
R

Rick Brandt

Jerry said:
DoCmd.SendObject , , acFormatTXT, "(e-mail address removed)", , , "Test
Email", "Sending test e-mail message", -1

Your final argument is [edit message] and you have set it to -1. -1 is
True, not False, so that is why the message is opened for editing.

I don't think this part matters, but you don't need to specify an object
format when you are not sending an object (no need for acFormatTXT).


DoCmd.SendObject , , , "(e-mail address removed)", , , "Test
Email", "Sending test e-mail message", False
 
J

Jerry Schiffelbein

Hi Rick,

Thank you for your response. Actually I tried -1, 1, 0, True, and False,
none of which made a difference. In my research on this command, I found
that this is apparently a known issue with the SendObject command, so I
believe that there is no further resolution possible with this problem.

Thanks again for your help. It was very much appreciated!

Jerry


Rick Brandt said:
Jerry said:
DoCmd.SendObject , , acFormatTXT, "(e-mail address removed)", , , "Test
Email", "Sending test e-mail message", -1

Your final argument is [edit message] and you have set it to -1. -1 is
True, not False, so that is why the message is opened for editing.

I don't think this part matters, but you don't need to specify an object
format when you are not sending an object (no need for acFormatTXT).


DoCmd.SendObject , , , "(e-mail address removed)", , , "Test
Email", "Sending test e-mail message", False


.
 
R

Rick Brandt

Jerry said:
Hi Rick,

Thank you for your response. Actually I tried -1, 1, 0, True, and False,
none of which made a difference. In my research on this command, I found
that this is apparently a known issue with the SendObject command, so I
believe that there is no further resolution possible with this problem.

Thanks again for your help. It was very much appreciated!

I certainly have never heard of that as an issue with SendObject. Do you
have a source for where you saw this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top