mail program in asp

mail program in asp

am 09.04.2007 14:46:43 von 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






New Page 1




To

From

Subject

Body






Contents of page sendmail.asp







New Page 1



<%
'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
%>




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

Re: mail program in asp

am 09.04.2007 16:37:47 von Jon Paal

http://www.webmaster-talk.com/asp-forum/46836-the-sendusing- configuration-value-is-invalid.html



wrote in message news:1176122803.257956.11880@l77g2000hsb.googlegroups.com...
> 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
>
>
>
>
>
>
> New Page 1
>
>
>
>


> To

> From

> Subject

> Body
>
>

>
>
>
>
> Contents of page sendmail.asp
>
>
>
>
>
>
>
> New Page 1
>
>
>
> <%
> '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
> %>
>
>
>
>
> 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
>