Forum Moderators: bakedjake

Message Too Old, No Replies

CDONTS and Redhat Linux 8

CDONTS and Redhat Linux 8

         

Axxic

7:53 am on Mar 27, 2003 (gmt 0)

10+ Year Member



I wonder if anyone can help me.

We have a Redhat linux 8 mail server.
Now i designed a page running on apache on that very same server.

I am using CDONTS to send a suggestion to an e-mail address.
If i host the page on my Local XP box the page sends the e-mail but when the page is hosted on my linux PC it doesn't give me any error messages but i do not receive the e-mail.
Here is the code that i used.

<%
'Get Values from sent page
StrFrom = Trim(request.Form("TxtFrom"))
StrBody = Trim(request.Form("TxtSuggestion"))

Dim strTo
Dim strSubject
Dim strBody 'Strings for recipient, subject, boby
Dim objCDOMail 'The CDO object

'First we'll read in the values entered from the form into the Local variables
strTo = "Myaddress@mydomain.com"
strSubject = "Suggestion from Intranet Page"

' Create an instance of the NewMail object.
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")

' Set the properties of the object
objCDOMail.host = "127.0.0.1"
objCDOMail.From = StrFrom
objCDOMail.To = strTo
objCDOMail.Subject = strSubject
objCDOMail.Body = StrBody

' Send the message!

objCDOMail.Send
Set objCDOMail = Nothing
%>

phaze3k

3:35 pm on Mar 27, 2003 (gmt 0)

10+ Year Member



Let me get this straight, you're trying to use ASP code on plain-vanilla RH Apache and you're wondering why it doesn't work?

ASP == M$. There are ways to make it work under Linux (Chillisoft for example), but I wouldn't recommend it.