command button to send email

  • Thread starter Thread starter Jerry Crosby
  • Start date Start date
J

Jerry Crosby

Somewhere in the past I read how to place a command button on a form that
would send an email message, using one of the fields (i.e., the field with
an email address in it!) in the "TO" field. In fact, I put it on a form and
it's working fine. (Actually, it opens a blank email window in Outlook,
with the address from the form already in the TO field.)

However, now that I want to put it on another form, do you think I could
remember how I did it? NOT!

On the working form, it indicates the hyperlink address is mailto:k. That
"k" has got to be a code for something, as it has no relation to the email
field on the form, but I can't figure it out.

Anyone know how to do this?

Jerry
 
Jerry,
I'd have the button OnClick fire off the SendObject function, using the
Email field on the form in the TO argument. SendObject also allows other
variables in an email to be "canned", such as CC, Subject, MessageBody,
etc...
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
 
I was going to say... check out SendObject in help. The syntax and
arguments are very straight-forward.
Good deal...
 
Back
Top