Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CDO NTS form mail - Working and not working!!


Message #1 by "Tarun Chaudhary" <tarun@i...> on Tue, 20 Mar 2001 05:43:44
I am hosting websites on a Win2K server running IIS 5.0 using shared IP 

methodology, i.e. Multiple Website on a single IP. I am also running IMail 

as my mail server. My problem is that when i use CDO NTS form mail on my 

website, which is the master website - configured to an ipaddress, CDO NTS 

form mail works fine. The same form with the same coding runs into trouble 

when used on a diffrent site on my server.



It gives me a 500 internal server error. When checked in the log, it says 

Object Altready Exists. 



Please see the working example at http://www.instaspace.com/cdonts/



and the error at



http://www.care4wild.com/feedbackform.htm



Please help me out.



Thank You

Tarun



NOTE: I have configured Microsoft SMTP server to run CDO so that is not 

the problem. :)
Message #2 by "Matthew Lohr" <mlohr@t...> on Tue, 20 Mar 2001 08:38:46 -0500
I have the same setup and it is working just fine.  The code I use follows

this message try this in both pages and see how it works



<%



Dim myMail	'Variable for the mail object

Dim strFrom

strFrom = Trim(Request("from"))

Dim strTo

strTo = Trim(Request("to"))

Dim strmsgsubj

strmsgsubj = Trim(Request("msgsubj")) 'String variable to hold the body of

the message

Dim strmsgbody

strmsgbody = Trim(Request("msgbody") 'String variable to hold the body of

the message

Set myMail = Server.CreateObject("CDONTS.NewMail")

myMail.Subject = strmsgsubj

myMail.Body = strmsgBody	'The body of the message

myMail.To = strTo	'Where the message is going

myMail.From = strFrom

myMail.Send	'sends the email



%>



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

From: Tarun Chaudhary [mailto:tarun@i...]

Sent: Tuesday, March 20, 2001 5:44 AM

To: ASP CDO

Subject: [asp_cdo] CDO NTS form mail - Working and not working!!





I am hosting websites on a Win2K server running IIS 5.0 using shared IP

methodology, i.e. Multiple Website on a single IP. I am also running IMail

as my mail server. My problem is that when i use CDO NTS form mail on my

website, which is the master website - configured to an ipaddress, CDO NTS

form mail works fine. The same form with the same coding runs into trouble

when used on a diffrent site on my server.



It gives me a 500 internal server error. When checked in the log, it says

Object Altready Exists.



Please see the working example at http://www.instaspace.com/cdonts/



and the error at



http://www.care4wild.com/feedbackform.htm



Please help me out.



Thank You

Tarun



NOTE: I have configured Microsoft SMTP server to run CDO so that is not

the problem. :)


  Return to Index