hi all
i need to send mail in ASP but it should not be sent from server,
when user clicks on send mail button then only it should send the mail.
i tried to send the mail using server,
code written was as follows
<html>
<title>mail</title>
<body>
<form action="">
<input type="button" value="send mail!">
</form>
<%
Set objEMail = Server.CreateOb ject("CDO.Messa ge")
objEMail.To = "someone@comp.c o.in"
objEMail.From = "somone@comp.co .in"
objEMail.Subjec t = "subject"
objEMail.TextBo dy = "some text..."
Set objEMail = Nothing
objEMail.Send
Response.Write( "Message Sent")
%>
</body>
</html>
i need to send mail in ASP but it should not be sent from server,
when user clicks on send mail button then only it should send the mail.
i tried to send the mail using server,
code written was as follows
<html>
<title>mail</title>
<body>
<form action="">
<input type="button" value="send mail!">
</form>
<%
Set objEMail = Server.CreateOb ject("CDO.Messa ge")
objEMail.To = "someone@comp.c o.in"
objEMail.From = "somone@comp.co .in"
objEMail.Subjec t = "subject"
objEMail.TextBo dy = "some text..."
Set objEMail = Nothing
objEMail.Send
Response.Write( "Message Sent")
%>
</body>
</html>
Comment