I have a send object code that enables me to include the fields in a form as the body of the mail.
I am having problems making it work properly:
The line reads as follows:
DoCmd.SendObject acSendNoObject, "", acFormatTXT, emailAddress, , , "Subject", formInfo, False
Even though I have 'False' at the end, it still brings up an edit window for the email.
I am also having problems getting abything to appear in the 'To:' field.
I have set emailAddress as a string, but if I enter a name, this does not appear in the To: section, it is just left blank. Also if I take the 'emailAddress' out of the sendObject line, and replace it with "matpj@another.com", this doesn't work, it comes up with an error saying: The SendObject action was cancelled.
what is wrong with this?!!
Matt
I am having problems making it work properly:
The line reads as follows:
DoCmd.SendObject acSendNoObject, "", acFormatTXT, emailAddress, , , "Subject", formInfo, False
Even though I have 'False' at the end, it still brings up an edit window for the email.
I am also having problems getting abything to appear in the 'To:' field.
I have set emailAddress as a string, but if I enter a name, this does not appear in the To: section, it is just left blank. Also if I take the 'emailAddress' out of the sendObject line, and replace it with "matpj@another.com", this doesn't work, it comes up with an error saying: The SendObject action was cancelled.
what is wrong with this?!!
Matt