Current location: Hot Scripts Forums » Programming Languages » ASP » ASP Form Mail


ASP Form Mail

Reply
  #1 (permalink)  
Old 01-13-05, 02:24 PM
tferrentino tferrentino is offline
New Member
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ASP Form Mail

I have modified a script that accesses the Microsoft Exchange Server. I want to set up a suggestion mailbox on our intranet site. All I get when executing the following code is the HTTP 500 - Internal server error
Internet Explorer witn no diagnostics.

set cdoMessage = Server.CreateObject("CDO.Message")
set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "cdpex2.CDP.LOCAL"
cdoConfig.Fields.Update
set cdoMessage.Configuration = cdoConfig
cdoMessage.From = Request.Form("from")
cdoMessage.To = "armstrongg@cobratf.com"
cdoMessage.Subject = Request.Form("ques_or_sugg")
cdoMessage.TextBody = Request.Form("body")
' cdoMessage.Type=Request.Form("ques_or_sugg")
cdoMessage.Department=Request.Form("department")
cdoMessage.Company=Request.Form("company")
cdoMessage.Send
set cdoMessage = Nothing
set cdoConfig = Nothing

Is the code correct?

Thanks

Tom Ferrentino
Reply With Quote
  #2 (permalink)  
Old 01-13-05, 05:06 PM
koncept
Guest
 
Posts: n/a
please disable friendly http error messages and porst the error(s) then i might be able to help more. i dont do exchange yet
Reply With Quote
  #3 (permalink)  
Old 02-25-05, 10:22 AM
hesiod's Avatar
hesiod hesiod is offline
Newbie Coder
 
Join Date: Feb 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
> cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

Is that supposed to be "3" for an exchange server? I saw somewhere else where it meant Exchange, but can't find any official documentation stating anything about 3 being a valid value.
__________________
-------------------------------------------------------------------------------
Information doesn't want anything... it just is - Nook Schreier
-------------------------------------------------------------------------------

Last edited by hesiod; 02-25-05 at 10:29 AM. Reason: Update
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 10:17 AM
formmail problem gscraper Perl 12 08-27-04 03:06 AM
Proffesional form builder + form mail script (very cheap) cms-master.com General Advertisements 0 05-13-04 09:58 AM
Please assist. My public email request form is under siege! AshleyQuick Perl 1 05-10-04 02:54 AM
E-Mail from ASP form to MS Exchange rschrab ASP 0 04-20-04 04:41 PM


All times are GMT -5. The time now is 03:16 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.