Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

access send email to a particular address

Posted on 2010-08-22
5
Medium Priority
?
260 Views
Last Modified: 2013-11-28
Wonder if there is a flat pack solution to this?

I should like a command button that when pressed sends a message like

subject: new entry has been made in accounts database

to a defined email address. ie to notify a specific accounts person (say accounts@acme.com) that a new entry has been made.

anyone assist please. many thanks
0
Comment
Question by:topUKlawyer
  • 2
  • 2
5 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 total points
ID: 33495007
Access includes the SendObject method. You can use it to send email:

DoCmd.SendObject acSendNoObject, , , "someone@somewhere.com", , , "MySubject", "MyBody", False

This uses the default email client. In some casese, this can trigger security warnings, specifically on Outlook platforms. If you need more robust capabilities, I'd suggest something like vbMAPI from www.everythingaccess.com.
0
 
LVL 49

Expert Comment

by:Dale Fye
ID: 33495012
Take a look at the SendObject method.  This should work perfectly for what you want to do.
0
 

Author Comment

by:topUKlawyer
ID: 33495232
`thanks guys

am awarding full points to LSM because I have got full instructions which I have put into place and works well

I couldnt put fyed's helpful hint without more.

hope thats ok guys
0
 

Author Closing Comment

by:topUKlawyer
ID: 33495236
Thanks
0
 
LVL 49

Expert Comment

by:Dale Fye
ID: 33496566
LSM was quicker to the draw than I was.

For a "topUKlawyer", I would think research and reading would be right up your alley.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

773 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