• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 302
  • Last Modified:

VBA Email code not creating a SENT version

I have emails that are being sent via VBA code; however, no "sent" copy is created for me.  I am trying to find the parametrs needed to send an email, but nothing I have come across tells me how to be sure I get a copy of the email being sent.  This is behind an ACCESS 2003 form.

Sandra
0
ssmith94015
Asked:
ssmith94015
  • 3
2 Solutions
 
peter57rCommented:
How are you sending the emails?
If you by-pass your installed email program then obviously you won't have a copy.

You can always add yourself to the bcc list.
0
 
Jeffrey CoachmanCommented:
Lets be clear, ...are you wanting a "Copy" of the sent email to be created, or are you asking about the email not appearing the the "Sent Items" folder.

You posted no information on the code you are using...?

If you are using SendObject, then insert your email in the cc argument.
DoCmd.SendObject acSendReport, "YourReport", acFormatRTF, "YourRecipientEmail", "YourEmail", , "Some Subject", "Some body Text", True

If creating the email via automation use something like this:
' Add the BCC recipient(s) to the message.
              Set objOutlookRecip = .Recipients.Add("YourEmail")
              objOutlookRecip.Type = olBCC


In other words Outlook will not typically create a copy of the email unless you tell it to.

JeffCoachman
0
 
Jeffrey CoachmanCommented:
Obviously change the automation code and replace BCC with CC...
0
 
ssmith94015Author Commented:
Yes, I am bypassing the installed program and going right to the server.  So I did make a cc to myself.  Thank you both.<br /><br />Sandra
0
 
Jeffrey CoachmanCommented:
;-)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now