Thanks ChristoferDutz
I am not sure what a mailserver is!
Perhaps its the mail component I am using jmail?
If so this is installed.
If it is not the jmail component can you explain the mailserver more please?
Main Topics
Browse All TopicsHello
Suddenly for some reason this jmail message has stopped working.
It was working OK on my development machine and my remote server.
Its is still Ok on the remote server but creates an error on the development machine.
The error is:
jmail.Message (0x8000FFFF)
The message was undeliverable. All servers failed to receive the message
/domain/Thank You.asp, line 42
The jmail component is installed.
I am using asp vbs with winXP
MailObj.MailServerUserName
I have tested this is working and have sent and received messages via Outlook.
Can anyone see why this code should not pass information from the previous page?
Many thanks
John
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
Session("sess_name") = cStr(Request("name"))
Session("sess_myemail") = cStr(Request("myemail"))
Session("sess_description"
Session("sess_telno") = cStr(Request("telno"))
%>
<%
' wrapper so email will only be sent when submit button is pressed
'If CStr(Request.Form("Submit"
Set MailObj = Server.CreateObject("JMail
MailObj.Logging = true
MailObj.ISOEncodeHeaders = False
MailObj.From = "info@mydomain.co.uk"
MailObj.AddRecipient Request.Form("Myemail")
MailObj.AddRecipientBCC "info@test.co.uk"
'JMail.AddRecipient "info@mydomain.co.uk"
MailObj.Subject = " thank you for your enquiry"
MailObj.HTMLBody = "<html>"
MailObj.appendHTML "<head>"
MailObj.appendHTML "<meta http-equiv=""Content-Type"
MailObj.appendHTML "<title>Thank you for your message: </title>"
MailObj.appendHTML "<style> *,body,table,tr,td"
MailObj.appendHTML "{font-family:verdana;font
MailObj.appendHTML "</style>"
MailObj.appendHTML "</head>"
MailObj.appendHTML "<body>"
MailObj.appendHTML "Thank you " & cStr(Request("name") &" "&("for sending the following information from the enquiry form. We will be in touch with you quite soon.<p>"))
MailObj.appendHTML "Your email entered: " & cStr(Request("myemail") &" "& "<p>")
MailObj.appendHTML "Your Description entered: " & cStr(Request("description"
MailObj.appendHTML "Your telno entered: " & cStr(Request("telno") &" "& "<p>")
'response.write cStr(Request("message"))
MailObj.appendHTML "</body>"
MailObj.appendHTML "</html>"
MailObj.MailServerUserName
MailObj.MailServerPassWord
MailObj.Send("localhost")
if err.number <> 0 then
response.write err.number & " " & err.description & " "
end if
Set MailObj = Nothing
'End If
%>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
No,
JMail prepares an Email and sends it, just like your normal Email client. The actual Mail Sending is done by the actual Mail-Server. As far as I could see, you set some login credentials in:
MailObj.MailServerUserName
MailObj.MailServerPassWord
But then send it to an SMTP Server on "localhost" using:
MailObj.Send("localhost")
I think you have to change "localhost" to the ip of your remote Server (As you said that this is working on the remote Server). I assume on this machine there is an SMPT Server running. So if the Mailserver is not configured to only accept mails from localhost, you should be fine.
I've found another quite simple example using JMail:
http://www.dimac.net/defau
Sorry for the delay
Re Quote
I think you have to change "localhost" to the ip of your remote Server (As you said that this is working on the remote Server). I assume on this machine there is an SMPT Server running. So if the Mailserver is not configured to only accept mails from localhost, you should be fine.
I am not sure if there is an smtp server running I am using a server with FastHosts I expect there is, Can you say what should be written in place of localhost?
Ok .. what is the name of the website, where everything works?
if the url is:
http://my.cool.server.com/
then you should add "my.cool.server.com" instead of localhost.
You can also try opening a CommandLine and type
telnet my.cool.server.com 25
And if you get something like
220 my.cool.server.com
(the 220 is important) then there is a mailserver running on that port. Then try
telnet localhost 25
You will propably get a: connection refused (or something similar)
Another very anoying thing can be Anti-Virus Software. These take controll over all outgoing Connection to port 25 to prevent Worms and Virusses from spreading. So Mabe you should check if you have updated your Virus-Scanner since the last time everything worked.
It occoured to me that Localhost on this local machine may be the problem.
On this local development machine
I have localhost being used with IIS on port 80 for asp and asp.net
I have another localhost for a database server know as Alpha 5 being used on port 8080
I wondered whether there could be a conflict with the two Localhosts on this PC
I have not uploaded the Alpha 5 Server to the remote machine yet so no possible conflict there.
Well localhost just refers to the ipadress 127.0.0.1, which is allways the local machine. you can think of it as the word "Me" ... evern if you refer to yourself as "Me" ... someone else will certainly refer to himselt with "Me" to. This is because "Me" is sort of defined in a rather local context.
Back to your problem:
Could you please execute the following command:
netstat -a -b -n
One row of the example output is then:
TCP 10.10.10.114:1056 87.77.26.229:14145 HERGESTELLT 3168
[Skype.exe]
The first block is the protocol. The second is the ip-Adress which can be a real ip-adress (the one of your network card in your computer), 127.0.0.1 (which is localhost) and 0.0.0.0 which refers to any installed network (ip of the computer AND localhost) ... after the ":" in the ip field comes the port. This is where it starts getting interesting. Look for a row containing ":25" (25 is the default SMTP port)
There must be an application running on this port as you got a correct answer from a SMTP server. The row below this entry contains the name of the executable having opened this port.
Would you please post the row containing the ":25" and the row below it?
Ok ... so you are running an Internet Information Server and have configured some sort of SMTP Service ... I think you will have to configure this Service:
http://www.codeproject.com
As I don't know which version of IIS you are actually using, I'd just try to look at this and mabe you even see something in the System logs.
Thanks
I have IIS 5.1 on my xp machine here and IIS 6 on the web server2003
Thats a very interesting article, many of the features within IIS I am not familiar with but I cannot see anything obvious that is at present incorrectly set up.
What I have found in the jmail code is the line
MailObj.Send("localhost") when changed to
'MailObj.Send("mail.mydoma
I am not sure if I am missing something here or whether that change is advisable. Maybe you have a view on this
Well I remember that being the thing I recommended to you. With "localhost" you connect to a local Email-Server and let that one do the actual sending. When seting it to "mail.mydomain.co.uk" you ask the official Mailserver to send the email. So I would certainly recommend the "mail.mydomain.co.uk" setting as this works on ANY machine.
Business Accounts
Answer for Membership
by: ChristoferDutzPosted on 2009-09-17 at 05:28:51ID: 25355224
Do you have a Mailserver installed on your development machine? You are sending to a Mailserver on "localhost" so if you don't have a Mailserver on that host, this is the reason you are having problems. Change this to the ip/host-name of your mailserver ynd you should be ready to go.