Solved

E-mail confirmation...

Posted on 1998-12-15
2
156 Views
Last Modified: 2013-12-25
Here is what I want to do:

Allow a user to fill in a form (name, address, a few personal questions etc.), store the data in an Access 97 database, send an e-mail to that person (BCC to another person as well) containg a thank you note and the very same data they entered on that form, which will be extracted from the DB (since the DB may have some other data that needs to be pulled into the E-mail).

Products I plan to use:

Microsoft Back Office 4.0 (IIS 4.0, IIS SMTP Server, ASP, Visual Basic, Visual InterDev etc.).

Any ideas/suggestions on where/how to start?
0
Comment
Question by:loyaliser
2 Comments
 
LVL 1

Author Comment

by:loyaliser
ID: 1857221
Edited text of question
0
 
LVL 1

Accepted Solution

by:
rajgn earned 100 total points
ID: 1857222
If you use IIS4.0, You can use NewMail Object in the built in  library CDONTS for mailing activities. It's very simple to use. You can build confirmation message based on the data the user enters(let's say 'mesg') then insert the following code to send it by mail.

  Set objNewMail = CreateObject("CDONTS.NewMail")
  objNewMail.Send("fromme@company.com", "toyou@company.com", "subject:Hello", _
                  mesg, 0) ' low importance
  Set objNewMail = Nothing ' canNOT reuse it for another message

Use Bcc,Cc etc. properties of this object to send Bcc or Cc. For complete documentation of this object, refer to:

http://premium.microsoft.com/msdn/library/sdkdoc/iishelp/iis/htm/asp/amsmtp_0qzj.htm
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

829 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