Sending Email

T

tryn2learn

Good afternoon,

I am tryign to send an email from access. i found the following code:
but the code doesn't put anything in the cc, subject, or body. i did see in
help but to be honest i really don't know how to apply. i really appreciate
your help.
 
D

Daniel

If you look at the help for the sendobject method you get

expression.SendObject(ObjectType, ObjectName, OutputFormat, To, Cc, Bcc,
Subject, MessageText, EditMessage, TemplateFile)

Thus you can specify the CC recipient by inputing a value for the 5th input
variable
BCC 6th input variable, Subject, 7th input variable, and so on.

Example:
DoCmd.SendObject acSendNoObject, , , "derrick smith; bob johnson;
lisajackson","[email protected]","[email protected]","My
Subject Heading","Message Body",True

The last input variable that I used (TRUE) indicate that you would like to
view/edit the message before it is sent. Change it to FALSE if you want it
to be sent without any intervention on your behalf.
--
Hope this helps,

Daniel P
 
T

tryn2learn

This has answered my question... you have a been a great help.

Thank you very much. be blessed.
 
Top