Solved

VBA Email code not creating a SENT version

Posted on 2012-03-21
5
284 Views
Last Modified: 2012-03-21
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
Comment
Question by:ssmith94015
  • 3
5 Comments
 
LVL 77

Assisted Solution

by:peter57r
peter57r earned 250 total points
ID: 37748444
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
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 250 total points
ID: 37748456
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
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37748467
Obviously change the automation code and replace BCC with CC...
0
 

Author Closing Comment

by:ssmith94015
ID: 37749628
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
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37749693
;-)
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question