Createobject Cdo Message Internal Server Error
Contents |
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit wscript createobject cdo message Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing vbs createobject cdo message Store Headlines Experts Exchange > Questions > .ASP email send returning 500 - Internal server error IIS Want to Advertise Here? Solved .ASP
Set Omsg Createobject Cdo Message
email send returning 500 - Internal server error IIS Posted on 2013-07-01 MS Server Apps Windows Server 2008 Microsoft IIS Web Server 1 Verified Solution 8 Comments 3,224 Views Last Modified: 2013-07-17 I've copied some pages from our
Vbscript Cdo Message
old server to a new one, this page is no longer sending emails and instead is throwing an error. I expect I haven't set something right with the server/service since it worked before and the code hasn't changed. Here's the sub that's dieing: sub send_email(x_subject, x_body, x_to, x_from) 'used for sending mail to a single recipient sch = "http://schemas.microsoft.com/cdo/configuration/" set cdoConfig = CreateObject("CDO.Configuration") with cdoConfig.Fields .Item(sch & cdo message javascript "sendusing") = 2 .Item(sch & "smtpserver") = "127.0.0.1" .update end with set cdoMessage = CreateObject("CDO.Message") with cdoMessage set .Configuration = cdoConfig .From = x_from .To = x_to .Subject = x_subject .HtmlBody = x_body .Send end with set cdoMessage = nothing set cdoConfig = nothing end sub If I comment out the call to the sub there's no error, but it also doesn't send the email, obviously. 0 Question by:Rossamino Facebook Twitter LinkedIn Google LVL 52 Active today Best Solution byScott Fell, EE MVE The_transport_failed_to_connect_to_the_server. You probably need to authenticate. Look here http://www.paulsadowski.com/wsh/cdo.htm for the sample. I copied below, make sure to use your own info. Go to Solution 8 Comments LVL 52 Overall: Level 52 Microsoft IIS Web Server 9 Windows Server 2008 4 MS Server Apps 1 Message Active today Expert Comment by:Scott Fell, EE MVE2013-07-01 Try logging into the server to see the actual error or turn on errors in iis. Chances are you just need to send via pick up changing this line .Item(sch & "sendusing") = 2 to .Item(sch & "sendusing") = 1 The 1 means pick
visit, be sure to check out the FAQ by clicking the link
Cdo Message Visual Basic
above. You may have to register before you can post: cdo message vba click the register link above to proceed. To start viewing messages, select the forum that classic asp send email you want to visit from the selection below. Results 1 to 3 of 3 Thread: CDOSYS HTTP 500 error Tweet Thread Tools Show Printable https://www.experts-exchange.com/questions/28172855/ASP-email-send-returning-500-Internal-server-error-IIS.html Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 05-09-2012,04:15 PM #1 Frggs View Profile View Forum Posts Registered User Join Date May 2012 Posts 1 CDOSYS HTTP 500 error I am trying to familiarise my self.. so please be http://www.webdeveloper.com/forum/showthread.php?260401-CDOSYS-HTTP-500-error patient! a total nubie…. The following is copied from http://www.w3schools.com/asp/asp_send_email.asp I am working my way through the tutorials… everything works so far… until I try this…. Examples using CDOSYS Sending a text e-mail: <% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="someone@somedomain.com" myMail.TextBody="This is a message." myMail.Send set myMail=nothing %> I am trying this on a local machine with Vista Ultimate and IIS 6 installed with these features http://www.froggshalllimited.co.uk/IIS.jpg But with myMail.Send this results in HTTP500 internal server error What am I missing? Reply With Quote 05-14-2012,09:12 AM #2 ithighway View Profile View Forum Posts Registered User Join Date Oct 2005 Posts 9 Use following and provide data according to your server settings: '#Text body email NOT html set objMail = Server.CreateObject("CDO.Message") objMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "info@yourdomain.com" '#smtp address objMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25'#smtp port ' objMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 ' objMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "verfiyemail@yourdomain.com" '#validation email ' objMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/con
Web Platform Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET Forums IIS 7 and Above Classic ASP Sending e-mail http://forums.iis.net/t/1164349.aspx?Sending+e+mail+with+classic+ASP+SMTP+server+and+IIS7+5 with classic ASP, SMTP server and IIS7.5 Sending e-mail with classic ASP, https://forums.digitalpoint.com/threads/internal-server-error.974711/ SMTP server and IIS7.5 [Answered]RSS 8 replies Last post Jul 21, 2010 01:30 AM by spivey ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Advanced Search Reply martijnvm 5 Posts Sending e-mail with classic ASP, SMTP server and IIS7.5 cdo message Jan 22, 2010 03:17 AM|martijnvm|LINK Hello all, I've installed the SMTP server on my Windows Server 2008 machine. I've added some legacy classic asp websites to the webserver. All these websites are not able to send e-mail with the installed SMTP server. I'm able to send an e-mail with telnet. When I try the following code an error occurs: <% createobject cdo message Set cdoMessage = CreateObject("CDO.Message") With cdoMessage .From = info@domain1.nl .To = user@domain2.nl .Subject = "Sample CDO Message" .TextBody = "This is a test for CDO.message" .Send End With Set cdoMessage = Nothing %>
The displayed error is: CDO.Message.1 error '80040220' The "SendUsing" configuration value is invalid. /testmail.asp, line 8 The same code works without problems on my old Windows Server 2003 machine with IIS6. Does anyone have an idea what's wrong here? Thanks in advance. Martijn van Mechelen Reply martijnvm 5 Posts Re: Sending e-mail with classic ASP, SMTP server and IIS7.5 Jan 22, 2010 03:48 AM|martijnvm|LINK It seems that it's got something to do with the account of the Application Pool. With the ApplicationPoolIdentity account(the default)I get the following message: CDO.Message.1 error '80040220' The "SendUsing" configuration value is invalid. /testmail.asp, line 8 With the NetworkService accountI get themessage: CDO.Message.1 error '80070005' Access is denied. /testmail.asp, line 8 When i set the account to theAdministrator account,the e-mail is sent! So the question is: which account and which configuration settingsshould I usefor classic asp websites in IIS 7.5? The AdminYou can target relevant areas of the site and show ads based on geographical location of the user if you wish. Starts at just $1 per CPM or $0.10 per CPC. Internal server error? Discussion in 'C#' started by davidcarlson, Aug 10, 2008. 0 davidcarlson Guest Messages: 40 Likes Received: 0 Best Answers: 0 Trophy Points: 0 #1 I am trying to set up an asp page to email the information from an online form. The code I am using is below. When I don't use the second block of code (the part actually sending the mail), the variables come through fine and the response is written to the screen. When I use all of the code, the submit button on the html page leads you to a page that says this: Server Error 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. If anyone can figure out what is wrong with the code I would appreciate it.
<% Dim firstname, lastname, email, message, tenant, address, aptnum, NewMailObj firstname=request.Querystring("firstname") lastname=request.Querystring("lastname") email=request.Querystring("email") message=request.Querystring("message") tenant=request.Querystring("tenant") address=request.Querystring("address") aptnum=request.Querystring("aptnum") Set NewMailObj=Server.CreateObject("CDO.Message") NewMailObj.From = "dave@timberridgeproperties.com" NewMailObj.To = "dave@timberridgeproperties.com" NewMailObj.Subject = "Online Contact Form" NewMailObj.HTMLBody = "Name:" & firstname & " " & lastname & "Email:" & email & "
Message:" & message & "
tenant?" & tenant & "
address:" & address & " apt #" & aptnum NewmailObj.Send Set NewMailObj = nothing Response.write("Thank you for your submission.") %> davidcarlson, Aug 10, 2008 IP 50plus Guest Messages: 235 Likes Received: 3 Best Answers: 0 Trophy Points: 0 #2 It is likely that another email component is installed on the server [Server.CreateObject("CDO.Message")], you mi