Sending Email

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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","(e-mail address removed)","(e-mail address removed)","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
 
This has answered my question... you have a been a great help.

Thank you very much. be blessed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top