Solved

Web form to Access Database that sends an email for each new entry

Posted on 2009-04-08
3
205 Views
Last Modified: 2013-12-24
I made a form using Frontpage 2003 that takes the contents of the form and puts it in an Access database on our server using Frontpage extensions. Simple stuff. That part works great.

What I want it to do is have an email sent to one specific address each time a new table record is entered into the database. This is all internal stuff, if that makes a difference. It's just for notification to the person that a new entry has been put into the database.

I figured this all out about six years ago at a previous job, and since then I have completely forgotten how I made it work! I also have Dreamweaver CS3, and can use either one for the solution. Seems like I remember having to put something within Access to make it work, but I just forgot the specifics. I'm using Access 2007.
0
Comment
Question by:William Fulks
3 Comments
 
LVL 31

Accepted Solution

by:
James Murrell earned 250 total points
ID: 24122606
one way is to set up the confirmation page to go to a email send page then that will go to another finshed page... take a look at code hope it helps
<html>
 
<head>
<title>Sent Mail</title>
<meta name="Microsoft Theme" content="none, default">
<meta name="Microsoft Border" content="none, default">
</head>
 
<body leftmargin="24" marginwidth="24">
 
<%
subj =  "form completed"
smtpServer = "mailserver.co.uk"
comefrom = "webemail@mailserver.co.uk"
 
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
	ObjMail.To =  "toemailaddress"
	ObjMail.From = comefrom
	ObjMail.Subject = subj
	ObjMail.Body = "new edit completed - your message"
	ObjMail.Send
Set ObjMail = Nothing
%>
 
</body>
 
</html>
<%
Response.Redirect "https://where you want page to go?"
%>

Open in new window

0
 
LVL 14

Author Comment

by:William Fulks
ID: 24124490
I didn't think about that one. I'll give it a try when I get back to work on Monday, and I'll let you know. Thanks!
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Database maintenance 36 109
Linking Master Child Fields 2 26
MS Access Error Handling 6 30
vb.net dbnull syntax 1 3
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

726 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