Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: cdonts error


Message #1 by achiu@m... on Fri, 3 Aug 2001 21:08:46
I created a InquiryForm.htm page for students to submit their inquiries. 

Another .asp page sends the inquiry via email with CDONTS. I received the 

following error message. Can someone looks at the code and help me to find 

out where goes wrong. Thanks in advance.



--* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --

HTTP Error 405

405 Method Not Allowed



The method specified in the Request Line is not allowed for the resource 

identified by the request. Please ensure that you have the proper MIME 

type set up for the resource you are requesting.



Please contact the server's administrator if this problem persists.

--* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --



--***** InquiryForm.htm *****--



<html>

<head>

<title>Monmouth University - Scholarship Inquiry Form</title>

</head>

<body>

<form name="inquiryForm.asp" method="post">

<table width="470" border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td>

    <h2>Scholarship Inquiry Form</h2>

    </td>

  </tr>

  <tr><td><hr></td></tr>

  <tr>

    <td>

    <table width="470" border="0" cellpadding="0" cellspacing="0">

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">Name:<input type="text" name="name" 

size="30"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">Street Address:<input type="text" 

name="address1" size="30"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">City, State, ZIP:<input type="text" 

name="address2" size="30"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">E-mail Address:<input type="text" 

name="email" size="30"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">Phone:<input type="text" name="phone" 

size="30"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">HIGH SCHOOL attended:<input 

type="text" name="highschool" size="30"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">SAT/ACT SCORE:<input type="text" 

name="sat_act" size="10"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td colspan="10" height="20">Cumulative High School Grade Point 

Average (Grades 9-11):<input type="text" name="gpa" size="5"> (4.0 Scale) 

or (A+, A, A-, B+, B, B-, C+, C,)</td>

      </tr>

    </table>

    </td>

  </tr>

  <tr><td height="20"> </td></tr>

  <tr align="center" valign="top">

    <td height="30"><input type="submit" name="submit" 

value="Submit">   <input type="reset" name="reset" 

value="Reset"></td>

  </tr>

</table>

</form>

</body>

</html>

--* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --



--***** InquiryForm.asp *****--



<%@ Language=VBScript %>



<%

dim Name

dim Address1

dim Address2

dim Email

dim Phone

dim HighSchool

dim SAT_ACT

dim GPA

dim Message

dim objEmail



Name=Request.Form("name")

Address1=Request.Form("address1")

Address2=Request.Form("address2")

Email=Request.Form("email")

Phone=Request.Form("phone")

HighSchool=Request.Form("highschool")

SAT_ACT=Request.Form("sat_act")

GPA=Request.Form("gpa")



Message = Name & vbCrLf & Address1 & vbCrLf & Address2 & vbCrLf & Email & 

vbCrLf & Phone & vbCrLf & HighSchool & vbCrLf & SAT_ACT & vbCrLf & GPA

%>



<%

set objEmail = CreateObject("CDONTS.NewMail")

objEmail.Subject="Scholarship Inquiry Form"

objEmail.From="sequel@m..."s

objEmail.To="achiu@m..."

objEmail.Body=Message

objEmail.Send

set objEmail = nothing

%>

--* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --





Message #2 by "Joe Colletti" <jcollet2@c...> on Mon, 6 Aug 2001 13:51:52
> I created a InquiryForm.htm page for students to submit their inquiries. 

> Another .asp page sends the inquiry via email with CDONTS. I received 

the 

> following error message. Can someone looks at the code and help me to 

find 

> out where goes wrong. Thanks in advance.

> 

> --* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --

> HTTP Error 405

> 405 Method Not Allowed

> 

> The method specified in the Request Line is not allowed for the resource 

> identified by the request. Please ensure that you have the proper MIME 

> type set up for the resource you are requesting.

> 

> Please contact the server's administrator if this problem persists.

> --* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --

> 

> --***** InquiryForm.htm *****--

> 





You need to change your form attribute from name to action.

> <html>

> <head>

> <title>Monmouth University - Scholarship Inquiry Form</title>

> </head>

> <body>

> <form name="inquiryForm.asp" method="post">

> <table width="470" border="0" cellpadding="0" cellspacing="0">

>   <tr>

>     <td>

>     <h2>Scholarship Inquiry Form</h2>

>     </td>

>   </tr>

>   <tr><td><hr></td></tr>

>   <tr>

>     <td>

>     <table width="470" border="0" cellpadding="0" cellspacing="0">

>       <tr>

>         <td width="20" height="20"> </td>

>         <td width="450" height="20">Name:<input type="text" name="name" 

> size="30"></td>

>       </tr>

>       <tr>

>         <td width="20" height="20"> </td>

>         <td width="450" height="20">Street Address:<input type="text" 

> name="address1" size="30"></td>

>       </tr>

>       <tr>

>         <td width="20" height="20"> </td>

>         <td width="450" height="20">City, State, ZIP:<input type="text" 

> name="address2" size="30"></td>

>       </tr>

>       <tr>

>         <td width="20" height="20"> </td>

>         <td width="450" height="20">E-mail Address:<input type="text" 

> name="email" size="30"></td>

>       </tr>

>       <tr>

>         <td width="20" height="20"> </td>

>         <td width="450" height="20">Phone:<input type="text" 

name="phone" 

> size="30"></td>

>       </tr>

>       <tr>

>         <td width="20" height="20"> </td>

>         <td width="450" height="20">HIGH SCHOOL attended:<input 

> type="text" name="highschool" size="30"></td>

>       </tr>

>       <tr>

>         <td width="20" height="20"> </td>

>         <td width="450" height="20">SAT/ACT SCORE:<input type="text" 

> name="sat_act" size="10"></td>

>       </tr>

>       <tr>

>         <td width="20" height="20"> </td>

>         <td colspan="10" height="20">Cumulative High School Grade Point 

> Average (Grades 9-11):<input type="text" name="gpa" size="5"> (4.0 

Scale) 

> or (A+, A, A-, B+, B, B-, C+, C,)</td>

>       </tr>

>     </table>

>     </td>

>   </tr>

>   <tr><td height="20"> </td></tr>

>   <tr align="center" valign="top">

>     <td height="30"><input type="submit" name="submit" 

> value="Submit">   <input type="reset" name="reset" 

> value="Reset"></td>

>   </tr>

> </table>

> </form>

> </body>

> </html>

> --* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --

> 

> --***** InquiryForm.asp *****--

> 

> <%@ Language=VBScript %>

> 

> <%

> dim Name

> dim Address1

> dim Address2

> dim Email

> dim Phone

> dim HighSchool

> dim SAT_ACT

> dim GPA

> dim Message

> dim objEmail

> 

> Name=Request.Form("name")

> Address1=Request.Form("address1")

> Address2=Request.Form("address2")

> Email=Request.Form("email")

> Phone=Request.Form("phone")

> HighSchool=Request.Form("highschool")

> SAT_ACT=Request.Form("sat_act")

> GPA=Request.Form("gpa")

> 

> Message = Name & vbCrLf & Address1 & vbCrLf & Address2 & vbCrLf & Email 

& 

> vbCrLf & Phone & vbCrLf & HighSchool & vbCrLf & SAT_ACT & vbCrLf & GPA

> %>

> 

> <%

> set objEmail = CreateObject("CDONTS.NewMail")

> objEmail.Subject="Scholarship Inquiry Form"

> objEmail.From="sequel@m..."s

> objEmail.To="achiu@m..."

> objEmail.Body=Message

> objEmail.Send

> set objEmail = nothing

> %>

> --* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --

> 

> 

Message #3 by RAJENDAR REDDY <a_rajendar@y...> on Mon, 6 Aug 2001 06:06:50 -0700 (PDT)
hi..

<form name="inquiryForm.asp" method="post">



just look at form tag which u have given



<form name="form1" action="inquiryform.asp" method="post">







--- Joe Colletti <jcollet2@c...> wrote:

> > I created a InquiryForm.htm page for students to submit

> their inquiries. 

> > Another .asp page sends the inquiry via email with

> CDONTS. I received 

> the 

> > following error message. Can someone looks at the code

> and help me to 

> find 

> > out where goes wrong. Thanks in advance.

> > 

> > --* * * * * * * * * * * * * * * * * * * * * * * * * * *

> * * * --

> > HTTP Error 405

> > 405 Method Not Allowed

> > 

> > The method specified in the Request Line is not allowed

> for the resource 

> > identified by the request. Please ensure that you have

> the proper MIME 

> > type set up for the resource you are requesting.

> > 

> > Please contact the server's administrator if this

> problem persists.

> > --* * * * * * * * * * * * * * * * * * * * * * * * * * *

> * * * --

> > 

> > --***** InquiryForm.htm *****--

> > 

> 

> 

> You need to change your form attribute from name to

> action.

> > <html>

> > <head>

> > <title>Monmouth University - Scholarship Inquiry

> Form</title>

> > </head>

> > <body>

> > <form name="inquiryForm.asp" method="post">

> > <table width="470" border="0" cellpadding="0"

> cellspacing="0">

> >   <tr>

> >     <td>

> >     <h2>Scholarship Inquiry Form</h2>

> >     </td>

> >   </tr>

> >   <tr><td><hr></td></tr>

> >   <tr>

> >     <td>

> >     <table width="470" border="0" cellpadding="0"

> cellspacing="0">

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">Name:<input

> type="text" name="name" 

> > size="30"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">Street

> Address:<input type="text" 

> > name="address1" size="30"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">City, State,

> ZIP:<input type="text" 

> > name="address2" size="30"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">E-mail

> Address:<input type="text" 

> > name="email" size="30"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">Phone:<input

> type="text" 

> name="phone" 

> > size="30"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">HIGH SCHOOL

> attended:<input 

> > type="text" name="highschool" size="30"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">SAT/ACT

> SCORE:<input type="text" 

> > name="sat_act" size="10"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td colspan="10" height="20">Cumulative High

> School Grade Point 

> > Average (Grades 9-11):<input type="text" name="gpa"

> size="5"> (4.0 

> Scale) 

> > or (A+, A, A-, B+, B, B-, C+, C,)</td>

> >       </tr>

> >     </table>

> >     </td>

> >   </tr>

> >   <tr><td height="20"> </td></tr>

> >   <tr align="center" valign="top">

> >     <td height="30"><input type="submit" name="submit" 

> > value="Submit">   <input type="reset"

> name="reset" 

> > value="Reset"></td>

> >   </tr>

> > </table>

> > </form>

> > </body>

> > </html>

> > --* * * * * * * * * * * * * * * * * * * * * * * * * * *

> * * * --

> > 

> > --***** InquiryForm.asp *****--

> > 

> > <%@ Language=VBScript %>

> > 

> > <%

> > dim Name

> > dim Address1

> > dim Address2

> > dim Email

> > dim Phone

> > dim HighSchool

> > dim SAT_ACT

> > dim GPA

> > dim Message

> > dim objEmail

> > 

> > Name=Request.Form("name")

> > Address1=Request.Form("address1")

> > Address2=Request.Form("address2")

> > Email=Request.Form("email")

> > Phone=Request.Form("phone")

> > HighSchool=Request.Form("highschool")

> > SAT_ACT=Request.Form("sat_act")

> > GPA=Request.Form("gpa")

> > 

> > Message = Name & vbCrLf & Address1 & vbCrLf & Address2

> & vbCrLf & Email 

> & 

> > vbCrLf & Phone & vbCrLf & HighSchool & vbCrLf & SAT_ACT

> & vbCrLf & GPA

> > %>

> > 

> > <%

> > set objEmail = CreateObject("CDONTS.NewMail")

> > objEmail.Subject="Scholarship Inquiry Form"

> > objEmail.From="sequel@m..."s

> > objEmail.To="achiu@m..."

> > objEmail.Body=Message

> > objEmail.Send

> > set objEmail = nothing

> > %>

> > --* * * * * * * * * * * * * * * * * * * * * * * * * * *

> * * * --

> > 

> > 

=====

Regards

Rajendar Reddy.A

Iridium Interactive LTD,

Banjara Hills,Hyderabad.

091-040-6577601/602/3358817.

http://www.iridiuminteractive.com



Message #4 by "Alan Chiu" <achiu@m...> on Mon, 6 Aug 2001 09:34:59 -0400
Rajendar,



Thanks a lot.



Alan



-----Original Message-----

From: RAJENDAR REDDY [mailto:a_rajendar@y...]

Sent: Monday, August 06, 2001 9:07 AM

To: ASP CDO

Subject: [asp_cdo] Re: cdonts error





hi..

<form name="inquiryForm.asp" method="post">



just look at form tag which u have given



<form name="form1" action="inquiryform.asp" method="post">







--- Joe Colletti <jcollet2@c...> wrote:

> > I created a InquiryForm.htm page for students to submit

> their inquiries.

> > Another .asp page sends the inquiry via email with

> CDONTS. I received

> the

> > following error message. Can someone looks at the code

> and help me to

> find

> > out where goes wrong. Thanks in advance.

> >

> > --* * * * * * * * * * * * * * * * * * * * * * * * * * *

> * * * --

> > HTTP Error 405

> > 405 Method Not Allowed

> >

> > The method specified in the Request Line is not allowed

> for the resource

> > identified by the request. Please ensure that you have

> the proper MIME

> > type set up for the resource you are requesting.

> >

> > Please contact the server's administrator if this

> problem persists.

> > --* * * * * * * * * * * * * * * * * * * * * * * * * * *

> * * * --

> >

> > --***** InquiryForm.htm *****--

> >

>

>

> You need to change your form attribute from name to

> action.

> > <html>

> > <head>

> > <title>Monmouth University - Scholarship Inquiry

> Form</title>

> > </head>

> > <body>

> > <form name="inquiryForm.asp" method="post">

> > <table width="470" border="0" cellpadding="0"

> cellspacing="0">

> >   <tr>

> >     <td>

> >     <h2>Scholarship Inquiry Form</h2>

> >     </td>

> >   </tr>

> >   <tr><td><hr></td></tr>

> >   <tr>

> >     <td>

> >     <table width="470" border="0" cellpadding="0"

> cellspacing="0">

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">Name:<input

> type="text" name="name"

> > size="30"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">Street

> Address:<input type="text"

> > name="address1" size="30"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">City, State,

> ZIP:<input type="text"

> > name="address2" size="30"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">E-mail

> Address:<input type="text"

> > name="email" size="30"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">Phone:<input

> type="text"

> name="phone"

> > size="30"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">HIGH SCHOOL

> attended:<input

> > type="text" name="highschool" size="30"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td width="450" height="20">SAT/ACT

> SCORE:<input type="text"

> > name="sat_act" size="10"></td>

> >       </tr>

> >       <tr>

> >         <td width="20" height="20"> </td>

> >         <td colspan="10" height="20">Cumulative High

> School Grade Point

> > Average (Grades 9-11):<input type="text" name="gpa"

> size="5"> (4.0

> Scale)

> > or (A+, A, A-, B+, B, B-, C+, C,)</td>

> >       </tr>

> >     </table>

> >     </td>

> >   </tr>

> >   <tr><td height="20"> </td></tr>

> >   <tr align="center" valign="top">

> >     <td height="30"><input type="submit" name="submit"

> > value="Submit">   <input type="reset"

> name="reset"

> > value="Reset"></td>

> >   </tr>

> > </table>

> > </form>

> > </body>

> > </html>

> > --* * * * * * * * * * * * * * * * * * * * * * * * * * *

> * * * --

> >

> > --***** InquiryForm.asp *****--

> >

> > <%@ Language=VBScript %>

> >

> > <%

> > dim Name

> > dim Address1

> > dim Address2

> > dim Email

> > dim Phone

> > dim HighSchool

> > dim SAT_ACT

> > dim GPA

> > dim Message

> > dim objEmail

> >

> > Name=Request.Form("name")

> > Address1=Request.Form("address1")

> > Address2=Request.Form("address2")

> > Email=Request.Form("email")

> > Phone=Request.Form("phone")

> > HighSchool=Request.Form("highschool")

> > SAT_ACT=Request.Form("sat_act")

> > GPA=Request.Form("gpa")

> >

> > Message = Name & vbCrLf & Address1 & vbCrLf & Address2

> & vbCrLf & Email

> &

> > vbCrLf & Phone & vbCrLf & HighSchool & vbCrLf & SAT_ACT

> & vbCrLf & GPA

> > %>

> >

> > <%

> > set objEmail = CreateObject("CDONTS.NewMail")

> > objEmail.Subject="Scholarship Inquiry Form"

> > objEmail.From="sequel@m..."s

> > objEmail.To="achiu@m..."

> > objEmail.Body=Message

> > objEmail.Send

> > set objEmail = nothing

> > %>

> > --* * * * * * * * * * * * * * * * * * * * * * * * * * *

> * * * --

> >

> >

=====

Regards

Rajendar Reddy.A

Iridium Interactive LTD,

Banjara Hills,Hyderabad.

091-040-6577601/602/3358817.

http://www.iridiuminteractive.com



Message #5 by andy@a... on Tue, 7 Aug 2001 10:10:41
Hi



I get the following message when I try to send mail with an attachment. It 

works fine if I rem out the .attachfile line.



error '80004005' 

Unspecified error 



Here is my code -





	Dim objMail

	Dim strEmail



	set objMail=Server.CreateObject("CDONTS.Newmail")

	objMail.From=fEmail

	objMail.To= "andy@a..."

	objMail.Subject="Lost & Stolen Advert"

	objMail.Body=message 

	objMail.AttachFile(fImage) 

	objMail.Send

	set objMail=nothing



I can response write the variable fimage and it's OK I also get the same 

error if I hard code an image path. 8000 errors are pemissions me thinks 

but not sure were, any ideas.



This is running off an NT4 box with IIS4.



Regards



Andy Green

Message #6 by Eli Schilling <eschilli@t...> on Fri, 3 Aug 2001 13:43:23 -0700
in the asp page you have:



set objmail = createobject....



needs to be:



set objmail = server.createobject....



try that.



-Eli



-----Original Message-----

From: achiu@m... [mailto:achiu@m...]

Sent: Friday, August 03, 2001 1:37 PM

To: ASP CDO

Subject: [asp_cdo] cdonts error





I created a InquiryForm.htm page for students to submit their inquiries. 

Another .asp page sends the inquiry via email with CDONTS. I received the 

following error message. Can someone looks at the code and help me to find 

out where goes wrong. Thanks in advance.



--* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --

HTTP Error 405

405 Method Not Allowed



The method specified in the Request Line is not allowed for the resource 

identified by the request. Please ensure that you have the proper MIME 

type set up for the resource you are requesting.



Please contact the server's administrator if this problem persists.

--* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --



--***** InquiryForm.htm *****--



<html>

<head>

<title>Monmouth University - Scholarship Inquiry Form</title>

</head>

<body>

<form name="inquiryForm.asp" method="post">

<table width="470" border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td>

    <h2>Scholarship Inquiry Form</h2>

    </td>

  </tr>

  <tr><td><hr></td></tr>

  <tr>

    <td>

    <table width="470" border="0" cellpadding="0" cellspacing="0">

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">Name:<input type="text" name="name" 

size="30"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">Street Address:<input type="text" 

name="address1" size="30"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">City, State, ZIP:<input type="text" 

name="address2" size="30"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">E-mail Address:<input type="text" 

name="email" size="30"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">Phone:<input type="text" name="phone" 

size="30"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">HIGH SCHOOL attended:<input 

type="text" name="highschool" size="30"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td width="450" height="20">SAT/ACT SCORE:<input type="text" 

name="sat_act" size="10"></td>

      </tr>

      <tr>

        <td width="20" height="20"> </td>

        <td colspan="10" height="20">Cumulative High School Grade Point 

Average (Grades 9-11):<input type="text" name="gpa" size="5"> (4.0 Scale) 

or (A+, A, A-, B+, B, B-, C+, C,)</td>

      </tr>

    </table>

    </td>

  </tr>

  <tr><td height="20"> </td></tr>

  <tr align="center" valign="top">

    <td height="30"><input type="submit" name="submit" 

value="Submit">   <input type="reset" name="reset" 

value="Reset"></td>

  </tr>

</table>

</form>

</body>

</html>

--* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --



--***** InquiryForm.asp *****--



<%@ Language=VBScript %>



<%

dim Name

dim Address1

dim Address2

dim Email

dim Phone

dim HighSchool

dim SAT_ACT

dim GPA

dim Message

dim objEmail



Name=Request.Form("name")

Address1=Request.Form("address1")

Address2=Request.Form("address2")

Email=Request.Form("email")

Phone=Request.Form("phone")

HighSchool=Request.Form("highschool")

SAT_ACT=Request.Form("sat_act")

GPA=Request.Form("gpa")



Message = Name & vbCrLf & Address1 & vbCrLf & Address2 & vbCrLf & Email & 

vbCrLf & Phone & vbCrLf & HighSchool & vbCrLf & SAT_ACT & vbCrLf & GPA

%>



<%

set objEmail = CreateObject("CDONTS.NewMail")

objEmail.Subject="Scholarship Inquiry Form"

objEmail.From="sequel@m..."s

objEmail.To="achiu@m..."

objEmail.Body=Message

objEmail.Send

set objEmail = nothing

%>

--* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --

Message #7 by Foster Nathaniel <nfoster@s...> on Wed, 8 Aug 2001 08:34:54 -0400
What do you have in your fImage?  All path to your file or only the name on

the file???





-----Message d'origine-----

De : andy@a... [mailto:andy@a...]

Envoy=E9 : 7 ao=FBt, 2001 06:11

Objet : CDONTS Error





Hi



I get the following message when I try to send mail with an attachment. It

works fine if I rem out the .attachfile line.



error '80004005'

Unspecified error



Here is my code -





	Dim objMail

	Dim strEmail



	set objMail=Server.CreateObject("CDONTS.Newmail")

	objMail.From=fEmail

	objMail.To= "andy@a..."

	objMail.Subject="Lost & Stolen Advert"

	objMail.Body=message

	objMail.AttachFile(fImage)

	objMail.Send

	set objMail=nothing



I can response write the variable fimage and it's OK I also get the same

error if I hard code an image path. 8000 errors are pemissions me thinks

but not sure were, any ideas.



This is running off an NT4 box with IIS4.



Regards



Andy Green


  Return to Index