[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2009-04-08
3
Medium Priority
?
223 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 31

Accepted Solution

by:
James Murrell earned 1000 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 15

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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

650 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