mail program in asp

Discussion in 'ASP General' started by vinodkus@gmail.com, Apr 9, 2007.

  1. Guest

    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
     
    , Apr 9, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Curt_C [MVP]
    Replies:
    5
    Views:
    425
    Karim
    May 19, 2004
  2. me
    Replies:
    0
    Views:
    491
  3. Replies:
    4
    Views:
    55,608
  4. Michel

    asp mail without using a mail component

    Michel, Jul 14, 2004, in forum: ASP General
    Replies:
    4
    Views:
    151
    Ray at
    Jul 15, 2004
  5. martin smith
    Replies:
    3
    Views:
    354
    Jeff Cochran
    Mar 21, 2005
Loading...

Share This Page