By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,466 Members | 2,171 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,466 IT Pros & Developers. It's quick & easy.

Runtime 2293 using SendObject

P: n/a
Hello, and thank you in advance for any and all assistance. I'm having a
problem. This code worked years ago, what am I doing wrong?

Private Sub SendeMail_Click()
DoCmd.SendObject acSendNoObject, , , [email], [CC], [BCC], [Subject], [Body],
True

End Sub

I get a Run-time '2293': Can't send a message for the reason stated in the
previous alert.
Resolve that problem, then send the message again.

There isn't a previous message...HELP!!!

Error, when I try and send email from Access 97.

Thanks

Michael
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Microsoft has a fix, but it didn't work either:

DoCmd.SendObject acReport, "Catalog", "RichTextFormat(*.rtf)", _
"<email address>", "", "", "This is a test", "", False, ""
formatting the text to rich text format, still get the 2293 error.

Michael
Nov 12 '05 #2

P: n/a
Lumpierbritches wrote:
Hello, and thank you in advance for any and all assistance. I'm having a
problem. This code worked years ago, what am I doing wrong?

Private Sub SendeMail_Click()
DoCmd.SendObject acSendNoObject, , , [email], [CC], [BCC], [Subject], [Body],
True

End Sub

I get a Run-time '2293': Can't send a message for the reason stated in the
previous alert.
Resolve that problem, then send the message again.

There isn't a previous message...HELP!!!

Error, when I try and send email from Access 97.

Thanks

Michael


I would put your program into debug-step mode and get the values for
each argument. Then I would create a new moduled and create variables
for each item and the values from the debug-stepping. Then enter your
DOcmd.Sendobject line and remove 1 argument and run. Keep removing
arguments until you don't get an error.

The other thing to try is to do a SendObject manually. Create a new
module and enter something like
DoCmd.SendObject acSendNoObject, , , "lu*****@test.com", , , "Test
Subject", "test Body", True

See what happens. It's possible one or more arguments are incorrect.


Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.