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
Solved

Emailing info from an asp application

Posted on 1998-11-09
4
135 Views
Last Modified: 2010-05-18
Can anyone show me how to email information from an asp application.  I want a user to be able to select the info he/she requires and then enter their email address and hit submit, ...I want to then retrieve details from a database and then email the details to the email address entered.  The db and form filling part is not a problem, but I dont know how to do the email part.  I know my smtp server address ...etc, but how and when do I use this.  I'm using vi6 and vb6.
0
Comment
Question by:gbr
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
MasseyM earned 50 total points
ID: 1839521
You will need to have a mail applicaton installed on the server.  I recommend JMail from http://www.dimac.net.   It is free and works GREAT!  All the documentation you need comes with it.  

If you have that installed, I will be more than happy to work with you to get your system set up to do what you want.
0
 
LVL 1

Expert Comment

by:rajgn
ID: 1839522
Are you using IIS4.0 as your web server? if so, I can suggest you a better and simple way of mailing WITHOUT installing any other components on your server(just by addition of 3-4 lines of code).
0
 

Author Comment

by:gbr
ID: 1839523
Yes I am using IIS 4.0, can you give me further info?
0
 
LVL 1

Expert Comment

by:rajgn
ID: 1839524
Then use CDONTS library. sample code:

Set objNewMail = CreateObject("CDONTS.NewMail")
objNewMail.Send("me@company.com", "you@company.com", "Hello", "I sent this in 3 statements!", 0)
Set objNewMail = Nothing ' canNOT reuse it for another message

That's it!!!. It sends the mail from 'me' to 'you'(as I promised just in 3 lines)

for more information on properties,methods of CDONTS have a look at:

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

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

861 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