473,545 Members | 2,095 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Send mail from localhost - Returns false

I have had for sometime a problem getting cdo.message to work, so I have
given up on this and tried to test a form on my localhost machine using
CDONTS again (this used to work)

I have win 2000 Pro and when running this simple code:
------------
Set objSendmail = Server.CreateOb ject("CDONTS.Ne wMail")
objSendmail.Fro m = "te**@test. com"
objSendmail.To = "my*******@home .com"
objSendmail.Sub ject = "Subject Line"
objSendmail.Bod y = "Message"
objSendmail.Imp ortance = 2
bolWasSent = objSendmail.Sen d
Set objSendmail = Nothing

response.write( bolWasSent)
-----------

bolWasSent returns false and I get no mail.....it used to pop up a sending
window for outlook express andseconds later my test mail arrived. Looking in
my mailroot dir no mails are created.

Has anyone ay idea what the problem could be and how I can get this working
as it used to, but I have no idea what I have done.

Many thx, I'm desperate...... working out whats wrong with CDONTS being sent
may even help fix sending mail with CDO which I'll then go back to.

Stu
Jul 22 '05 #1
5 2753
Stop using CDONTS; use CDO.Message.
http://www.aspfaq.com/2336
http://www.aspfaq.com/2026

Why Outlook Express did or should pop up is a mystery to me. When your
application lives on a real web server, it is unlikely that Outlook Express
will have a valid account established, and even less likely that such a user
would be logged in every time this ASP code is invoked. Don't attempt to
use GUI applications from ASP, or to judge the success of the ASP code.

--
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.


"Stuart Palmer" <tr**********@y oucant.com> wrote in message
news:yx******** ********@newsfe 3-gui.ntli.net...
I have had for sometime a problem getting cdo.message to work, so I have
given up on this and tried to test a form on my localhost machine using
CDONTS again (this used to work)

I have win 2000 Pro and when running this simple code:
------------
Set objSendmail = Server.CreateOb ject("CDONTS.Ne wMail")
objSendmail.Fro m = "te**@test. com"
objSendmail.To = "my*******@home .com"
objSendmail.Sub ject = "Subject Line"
objSendmail.Bod y = "Message"
objSendmail.Imp ortance = 2
bolWasSent = objSendmail.Sen d
Set objSendmail = Nothing

response.write( bolWasSent)
-----------

bolWasSent returns false and I get no mail.....it used to pop up a sending
window for outlook express andseconds later my test mail arrived. Looking in my mailroot dir no mails are created.

Has anyone ay idea what the problem could be and how I can get this working as it used to, but I have no idea what I have done.

Many thx, I'm desperate...... working out whats wrong with CDONTS being sent may even help fix sending mail with CDO which I'll then go back to.

Stu

Jul 22 '05 #2
On Fri, 18 Mar 2005 17:50:22 GMT, "Stuart Palmer"
<tr**********@y oucant.com> wrote:
I have had for sometime a problem getting cdo.message to work, so I have
given up on this and tried to test a form on my localhost machine using
CDONTS again (this used to work)

I have win 2000 Pro and when running this simple code:
------------
Set objSendmail = Server.CreateOb ject("CDONTS.Ne wMail")
objSendmail.Fro m = "te**@test. com"
objSendmail.To = "my*******@home .com"
objSendmail.Sub ject = "Subject Line"
objSendmail.Bod y = "Message"
objSendmail.Imp ortance = 2
bolWasSent = objSendmail.Sen d
Set objSendmail = Nothing

response.write (bolWasSent)
-----------

bolWasSent returns false and I get no mail.....it used to pop up a sending
window for outlook express andseconds later my test mail arrived. Looking in
my mailroot dir no mails are created.
CDONTS should not pop up an Outlook Express window when sending. Do
you have SMTP running on this system (if not, CDONTS doesn't work)?
Have you tested the SMTP service? See:

HOW TO: Test Windows 2000 IIS SMTP Services Manually
http://support.microsoft.com/default...b;en-us;286421
Has anyone ay idea what the problem could be and how I can get this working
as it used to, but I have no idea what I have done.

Many thx, I'm desperate...... working out whats wrong with CDONTS being sent
may even help fix sending mail with CDO which I'll then go back to.


Fixing CDONTS may or may not help, but fixing your CDO issue would be
the way to go anyway, if that's what you intend to use.

Jeff
Jul 22 '05 #3
Hi Jeff,
I suspect they are related (they seem to give the same results), ideally
I'd like to use CDO but they should be using the same process I would have
thought, I just know for a fact the cdonts used to work.

I have run through the instructions at the url you supplied:

helo me
250 mydesktop Hello [127.0.0.1]
mail from:me@mydomai n.com
250 2.1.0 me@mydomain.com ....Sender OK
rcpt to:me@mydomain. com
550 5.7.1 Unable to relay for me@mydomain.com

Where mydomain is my sites domainame, and me is my name (a valid email
address for my site)

I couldn't get any further than the rcpt to: line as it reports it cannot
relay (see above)

What could I do to sort this....it wouldn't suprise me if this is my
problem.

Thx
Stu
Jul 22 '05 #4
On Fri, 18 Mar 2005 20:44:38 GMT, "Stuart Palmer"
<tr**********@y oucant.com> wrote:
Hi Jeff,
I suspect they are related (they seem to give the same results), ideally
I'd like to use CDO but they should be using the same process I would have
thought, I just know for a fact the cdonts used to work.
CDO can use a remote SMTP server, CDONTS needs a local one. CDONTS
also is deprecated.
I have run through the instructions at the url you supplied:

helo me
250 mydesktop Hello [127.0.0.1]
mail from:me@mydomai n.com
250 2.1.0 me@mydomain.com ....Sender OK
rcpt to:me@mydomain. com
550 5.7.1 Unable to relay for me@mydomain.com

Where mydomain is my sites domainame, and me is my name (a valid email
address for my site)

I couldn't get any further than the rcpt to: line as it reports it cannot
relay (see above)


Then it's not your code. The SMTP server is not configured to relay
mail for the sending system. Set your SMTP server to relay for
127.0.0.1 and you should be golden. See a SMTP group or the docs for
your operating system fo details.

Jeff
Jul 22 '05 #5
http://www.powerasp.com/content/new/...ail_cdosys.asp
"Stuart Palmer" <tr**********@y oucant.com> wrote in message
news:yx******** ********@newsfe 3-gui.ntli.net...
I have had for sometime a problem getting cdo.message to work, so I have
given up on this and tried to test a form on my localhost machine using
CDONTS again (this used to work)

I have win 2000 Pro and when running this simple code:
------------
Set objSendmail = Server.CreateOb ject("CDONTS.Ne wMail")
objSendmail.Fro m = "te**@test. com"
objSendmail.To = "my*******@home .com"
objSendmail.Sub ject = "Subject Line"
objSendmail.Bod y = "Message"
objSendmail.Imp ortance = 2
bolWasSent = objSendmail.Sen d
Set objSendmail = Nothing

response.write( bolWasSent)
-----------

bolWasSent returns false and I get no mail.....it used to pop up a sending
window for outlook express andseconds later my test mail arrived. Looking
in
my mailroot dir no mails are created.

Has anyone ay idea what the problem could be and how I can get this
working
as it used to, but I have no idea what I have done.

Many thx, I'm desperate...... working out whats wrong with CDONTS being
sent
may even help fix sending mail with CDO which I'll then go back to.

Stu

Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
9858
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ********************************** package Celcom.Client;
2
6348
by: mike | last post by:
I've spent a couple of days on this and I'm to the "bang-my-head 'gainst the monitor and babble in tongues" mode. First - SuSE Pro 9.3, Linux 2.6.11.4-21.7, Apache 2.0.53, PHP 4.3.10 I have sendmail running on the local server - mail from unix (1) mail and mutt work locally on the server. This is, specifically, sending mail to a...
9
4295
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5, VisualStudio2002, VB as programing language. Our test/development version of the web app as hosted on our "localhost" works fine; our "Default SMTP...
6
2439
by: Cameron Eckman | last post by:
I get various errors when I try to use email on the machine I have. XP professional. It works fine on another machine with NT 2000 server. Below is the code: 'BEGIN CODE Dim oMail As New MailMessage() With oMail .From = "mypc@baxglobal.com" .To = "ceckman@baxglobal.com"
1
6277
by: michi | last post by:
Hi there.... Got here a tricky thing with my SMTP. First I show you what works on my machine.. **This Works** SmtpMail.SmtpServer = "mail.gmx.net" <-gmx is my mail provider SmtpMail.Send"mymail@gmx.net", "somebody@xxx.ch", "sub",
2
1828
by: kmbarz | last post by:
I'm trying to expand my horizons here by working through an ASP.Net book. When I do the example that uses: Line 55: Mail.From = "feedback@graymad.com" Line 56: SmtpMail.SmtpServer = "localhost" Line 57: SmtpMail.Send(Mail) I get: myemail@comcast.net
0
1658
by: Dave S | last post by:
I have a lot of forms on our web site that require the user to fill out information and submit it back to us. currently the information comes back as name value pair. The our employee's then has to go thru all this code and fill in a template with the data and print the info out. It would be so much easier if we could have a button that would...
2
17458
by: clevrmnkey | last post by:
I've had nothing but trouble from the System.Net.Mail objects, but I finally need to make them work, and I can't for the life of me see what I'm doing wrong. I pared back my mail transaction to the bare minimum: System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("<my mail server IP>", 25); smtp.Send("<one of my email...
4
17443
Frinavale
by: Frinavale | last post by:
Introduction Many .NET applications will require an email be sent out for various reasons. This article will give a quick examples on how to send an email using VB.NET. The examples given can easily be translated into C#.NET. Storing Email Credentials If you are developing a web application the best place to store your email credentials is...
0
7396
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7805
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7413
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7751
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5323
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4943
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1874
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.