I am trying to include a button that sends an email with the contents of certain fields included in the message body. I can manage to do this using a report, but want to just send a plain text email. Any suggestions please.
This builds up the body of the email as a string called "messagetext".
customername referred to above is the name of the text field on the form which contains the customer's name. and so on. The Chr(x) bits are for formatting (new lines).
The bit that sends the email is the docmd.sendobject command which sends it to the email address stored in the value field on the referring form.
Thanx Mate
That was a great help, I'd figured most of it but the Chr() bit for adding carriage returns was the "icing on the cake"
Thanks again
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.