E-mailing in Access

S

Sahar

I am having trouble finding this solution in the discussions. I have a
customer form that allows you to email the customer directly from that
screen. For example, when you click on the "e-mail" button, it opens up
another form that has basic To, Cc, Subject, and Message fields. What I want
to do is allow the user from this form to click on the "send" button and the
e-mail should then automatically be sent using your default email program
(ie. MS Outlook) and be stored in the sent messages folder. I do not want to
actually open up the email program and have the user type all the
information. Is this possible? If so, how would I go about coding this in my
e-mail_Click() method?
 
S

Sahar

Ok, I figured it out, I used:
DoCmd.SendObject , , acFormatRTF, Me.Email, Me.Cc, , Me.Subject, Me.Message,
False, False

BUT, in another form I wanted to email the form as well, and when I changed
it to:
DoCmd.SendObject acSendForm, acFormatRTF, Me.Email, Me.Cc, , Me.Subject,
Me.Message, False, False

it gives the error, "Run-time error 2498. An expression you entered is the
wrong data type for one of the arguments".

Now even my first initial code is not working and before the email worked
fine! HELP!
 
M

mOLY

hi
u fine?

do u know PHP ?

gimme ur email form address and I will tell you how to do that.
u have to use 2 pho script. one for the email link and one for email.

have fun
moly
 
Top