Docmd.sendobject error message

  • Thread starter Thread starter Allan Murphy
  • Start date Start date
A

Allan Murphy

The names that you select must be in your address book, or valid users on
your LAN.

You could have another column hidden on your list which has the recipient's
email address then use the email addresses in lieu of the names in stDocName

Also, if you are sending to a group of people then each recipient must be
separated by a ; e.g. first name;second name etc.
 
I'm getting this message "unknown message recipient(s); the message was not
sent" when I select certain names in the drop down list but It works when I
pick other names (like my name or my boss name). How does Docmd.Sendobject
validate or get the the email address if the value under my MailToGroup is
full name (example: George Bush) not email address.

MailToGroup = Devo_Moved_Approved_By.Value

DoCmd.SendObject acSendNoObject, stDocName, "Rich Text Format", MailToGroup,
CopyToGroup, , MailSubject, MailMessage, False
 
I would suspect that SendObject validates them against your address book ...
just a guess, but you could look in your addressbook and see if the names
that work are in your book ...
 
Thank you guys for your response. I changed the drop down list to email
address and now it works. More power to this group. You've been very
helpful.

Irine
 
Back
Top