Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mail from VI

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I need help. Can someone tell me how to sen a mail from an ASP page in Visual Interdev? Thank you.
 
There are two typical methods, one using Microsoft CDO - Collaboration Data Objects; the other is to use a third-party email facility (Try AspEmail).

CDO
These ONLY run on an NT/Win2000 Server (not a workstation) and requires an SMTP server on that server too.
These can be tricky to develop, as you must run the web on a server - and most developers use Workstation or a non-server os. You can, however, simply configure CDO from IIS. You can send email directly from SQLServer too.

Third-Party
Tend to be free for the basic features. Are easy to install, and can run from any platform - making it easier to develop with. You may have to learn 'c' in order to send email directly from SQLServer (or you could ask me for some source code).

ASP Code would be something like:

dim oMail
set oMail = CreateObject("blaa.blaa")
oMail.Host = "123.456.123.009" 'ip of an SMTP server
oMail.To = "fred@somewhere"
oMail.subject = "xyz"
oMail.body = "hello"
oMail.send

(Content Management)
 
You can send mail from sql server using the extended stored procedure. xp_sendmail. I use it for internal messages.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top