Solved

sending email to someone using ASP

Posted on 2004-04-04
5
194 Views
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!!
0
Comment
Question by:msberth
5 Comments
 

Expert Comment

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

Expert Comment

by:Gaxx
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)
0
 
LVL 23

Expert Comment

by:rhandels
ID: 10751942
Hi there,

Try to use the code down here.

SET MyMail=Server.Createobject("CDONTS.Newmail")  
MyMail.MailFormat=1  
MyMail.BodyFormat=1  
MyMail.Importance=1  
MyMail.Subject="Your Subject"  
MyMail.To=x_RecipientEmailAddress  
MyMail.From="sam@yourcompany.com"  
MyMail.Body="Your Message Body"  
MyMail.Send  
Set MyMail=Nothing


If you are using Windows Server 2003

Dim MyMail
set MyMail.CreateObject("CDO.Message")
MyMail.From = "you@yourhouse.com"
MyMail.Subject = "CDOSYS Mail Message"
MyMail.To = "them@theirhouse.com"
MyMail.TextBody = "Hello World"
MyMail.Send
set MyMail = nothing

Make sure to safe the file as an ASP file....
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 10752348
the free vbSendMail component is working in ASP: http://www.freevbcode.com/ShowCode.Asp?ID=109
0
 
LVL 4

Accepted Solution

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

I use it and it works fine!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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 …

789 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