Solved

Emailing info from an asp application

Posted on 1998-11-09
4
133 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
Comment Utility
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
Comment Utility
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
Comment Utility
Yes I am using IIS 4.0, can you give me further info?
0
 
LVL 1

Expert Comment

by:rajgn
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now