Link to home
Start Free TrialLog in
Avatar of recovery3
recovery3

asked on

Upgrade to windows 2003 casue email problems

We recently upgraded to windows 2003 server. We have several departments through out the compnay that have
designed web sites using office 2000 and office xp. The departments have forms that allow employees to complete
the forms and on submit a an email is sent a person in the daprtment for review before it is added to the web page.
Before the upgrade the page form worked fine. After the upgrade after submit the form an error comes and the form is
not sent or the submit does nothing. We worked with a instuctor and they could not give us an answer so this question
is woth alot.
Avatar of fz2hqs
fz2hqs

I am guessing that you submitted the stuff from asp page using CDONTS ? 2003 doesn't use CDONTS it uses the CDO object instead, change your code to something like this:

Dim objNewMail
Set objNewMail = CreateObject("CDO.Message")

     objNewMail.From = strSender
     objNewMail.To = strRecipients
     objNewMail.Subject = strSubject
     objNewMail.Textbody = strMessage
     objNewMail.Configuration.Fields.Item ("cdo/configuration/sendusing">http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
     objNewMail.Configuration.Fields.Item ("cdo/configuration/smtpserver">http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
     objNewMail.Configuration.Fields.Item ("cdo/configuration/smtpserverport">http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
     objNewMail.Configuration.Fields.Update
     objNewMail.Send

Set objNewMail = Nothing

OBviously you will need to change the from, to, subject etc and may need to update the smtp server to an ip address is there isn't an smtp server running on the server (localhost)
Avatar of recovery3

ASKER

No this is the first question about this subject. Here is the problem. I developed and many others developed web pages for our departments
In those web using frontpage 2000 we used froms to get user input. On the form properties you can send the results to a txt file or email the results to a email address. These froms worked fine on the 2000 server. We upgraded to a 2003 sever and published the pages to that server. Now the froms give the user or us a error message when the form is used.

FrontPage Error.
User: please report details to this site's webmaster.


Webmaster: please see the server's application event log for more details.

I can not give you the exact error on the event log but it has soemthing to do with IIS6
Can you find the bit of code that actually does the sending of the email ?
Here is the HTML in the web page that should send the email.
<FORM METHOD="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" u-file="../formrslttxt.htm" s-format="HTML/DL" b-label-fields="TRUE" s-email-address="Rodney.Crouch@na.ipaper.com" s-email-format="TEXT/PRE" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="43374" --><P>
This page worked fine on the old sever.
Front Page Extensions are installed on the server aren't they ?

You can either get them through the Add/Remove applet in Control Panel or get the latest from MS:
http://www.microsoft.com/downloads/details.aspx?FamilyID=5cc0a845-1884-4a16-a8cb-25d2f0815fa3&displaylang=en
I am sure they are. I am not in control of the server. The server is 2003 exterprise edition. What do you think I should
suggest they reinstall the Front Page Extensions.
You simply need them to confirm that they are installed - your site worked fine up until this change, it is fair to argue that it is their fault that this problem has occured
ASKER CERTIFIED SOLUTION
Avatar of LlamaJoe
LlamaJoe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial