sending email to someone using ASP

Posted on 2004-04-04
Last Modified: 2011-04-14
i have a website which i need the user to be able to send an email to another person,the scenario is like this,i am developing web-based distributed database management system,and so i have a local database and a remote one,so the managers at the Headquarters(Local db) should be able to access the remote db,that is done,but now,i want the managers to be able to send some email to the employees at the branch(remote db). i dont really know how to carry this out.Im thinking that when the manager writes a message and clicks a send email button then the message is sent to that email.....can u help!!
Question by:msberth

Expert Comment

ID: 10751600
try this this will automatically open outlook express from where mail can be sent
<A HREF="mailto:emailid"</A>

Expert Comment

ID: 10751677
What OS is the server?  You should be able to use either CDONTS or CDO objects to do this but which you use will depend somewhat on which OS you're running :) (This presumes win32 of some variety)
LVL 23

Expert Comment

ID: 10751942
Hi there,

Try to use the code down here.

SET MyMail=Server.Createobject("CDONTS.Newmail")  
MyMail.Subject="Your Subject"  
MyMail.Body="Your Message Body"  
Set MyMail=Nothing

If you are using Windows Server 2003

Dim MyMail
set MyMail.CreateObject("CDO.Message")
MyMail.From = ""
MyMail.Subject = "CDOSYS Mail Message"
MyMail.To = ""
MyMail.TextBody = "Hello World"
set MyMail = nothing

Make sure to safe the file as an ASP file....
LVL 69

Expert Comment

by:Éric Moreau
ID: 10752348
the free vbSendMail component is working in ASP:

Accepted Solution

JpmSoft earned 25 total points
ID: 10775257
You can try ASPEmail... It's free.

I use it and it works fine!

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

Suggested Solutions

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

746 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

14 Experts available now in Live!

Get 1:1 Help Now