mail program in asp

V

vinodkus

Problem 1> I m writing a mail program in asp
my first page is mail.asp where I subitting address, subject, body and
second page is send_mail.asp

Contents of Page mail.asp
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
</head>

<body>
<form name = form1 action = "send_mail.asp" method = post>
To<input type = text name = "To"/ size="20" ><br/>
From<input type = text name = "from" size="20"/> <br/>
Subject<input type = text name = "subject" size="20"/></br>
Body <TextArea name = "body" rows = 5 column =20 wrap = "physical"
cols="20">
</textArea>
<input type = submit name = submit value = submit>
</form>
</body>

</html>

Contents of page sendmail.asp

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
</head>

<body>
<%
'Send An Email
dim mail
Set mail = Server.CreateObject("CDO.Message")
mail.To = Request.Form("To")
mail.From = Request.Form("From")
mail.Subject = Request.Form("Subject")
mail.TextBody = Request.Form("Body")
mail.Send() ' This is Line No 19
Response.write("Mail Sent!")
'Destroy The mail Object
Set mail = Nothing
%>
</body>

</html>

My Error is :

CDO.Message.1 (0x80040220)
The "SendUsing" configuration value is invalid.
/vkasp/aspMail/send_mail.asp, line 19
I have mention the Line no 19 in above code
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top