473,804 Members | 2,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problems with mail (CDONTS)

can anyone see why this wouldn't work...it's driving me nuts

Set objcdmail = Server.CreateOb ject("CDONTS.Ne wMail")
objcdmail.From = "me@mydomain.co m"
objcdmail.To = "me@mydomain.co m"
objcdmail.Subje ct = "test"
objcdmail.Body = "testing"
objcdmail.send
Set objcdmail = Nothing

I have copied this from another page that I have. The original page takes
the details from a form on another page, so the results above are all
request.form("w hatever") etc, and the original works!!

but if I try to put fixed values in as above it fails to work and I can't
see why??

I've even tried a response.write to check the values..and they look right,
but no mail is sent

I'm running win XP pro but have taken the CDONTS.DLL from my win 2000 pc and
done the regsv32 etc etc

maybe I should try to use CDOSYS but

a) I haven't a clue how and so
b) I copied a script directly from a help page which didn;'t work either!!
c) the eventual host server is running NT4

Jul 19 '05 #1
4 2244

"Alistair" <news@*remove*a listairb.co.uk> wrote in message
news:vv******** ****@corp.super news.com...
can anyone see why this wouldn't work...it's driving me nuts

Set objcdmail = Server.CreateOb ject("CDONTS.Ne wMail")
objcdmail.From = "me@mydomain.co m"
objcdmail.To = "me@mydomain.co m"
objcdmail.Subje ct = "test"
objcdmail.Body = "testing"
objcdmail.send
Set objcdmail = Nothing

I have copied this from another page that I have. The original page takes
the details from a form on another page, so the results above are all
request.form("w hatever") etc, and the original works!!

but if I try to put fixed values in as above it fails to work and I can't
see why??

I've even tried a response.write to check the values..and they look right,
but no mail is sent
If you aren't getting an ASP error returned, then your problem is not within
your code. It is something else, like your SMTP service is not running,
your SMTP server does not allow relaying from your machine or to that
domain, or you have an invalid e-mail header. Take a look at the event logs
on your machine for some hints. Also browse around \inetpub\mailro ot\* and
look at files in a text editor like notepad and see if you see your e-mails
in any of those folders.


I'm running win XP pro but have taken the CDONTS.DLL from my win 2000 pc and done the regsv32 etc etc


Why?

Ray at work
Jul 19 '05 #2
Maybe you could take the time to tell us what the error message is?

sheesh

"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..

"Alistair" <news@*remove*a listairb.co.uk> wrote in message
news:vv******** ****@corp.super news.com...
can anyone see why this wouldn't work...it's driving me nuts

Set objcdmail = Server.CreateOb ject("CDONTS.Ne wMail")
objcdmail.From = "me@mydomain.co m"
objcdmail.To = "me@mydomain.co m"
objcdmail.Subje ct = "test"
objcdmail.Body = "testing"
objcdmail.send
Set objcdmail = Nothing

I have copied this from another page that I have. The original page takes the details from a form on another page, so the results above are all
request.form("w hatever") etc, and the original works!!

but if I try to put fixed values in as above it fails to work and I can't see why??

I've even tried a response.write to check the values..and they look right, but no mail is sent
If you aren't getting an ASP error returned, then your problem is not

within your code. It is something else, like your SMTP service is not running,
your SMTP server does not allow relaying from your machine or to that
domain, or you have an invalid e-mail header. Take a look at the event logs on your machine for some hints. Also browse around \inetpub\mailro ot\* and look at files in a text editor like notepad and see if you see your e-mails in any of those folders.


I'm running win XP pro but have taken the CDONTS.DLL from my win 2000 pc

and
done the regsv32 etc etc


Why?

Ray at work

Jul 19 '05 #3
It sounds to me that there is no error message. So, chances are the e-mail
is getting created and dropped in the pickup folder just fine, and the
problem lies within the SMTP service, mail relaying restrictions,
unacceptable mail header, or some other issue along those lines.

Ray at work

"TIMA" <TI**@asdfasdf. com> wrote in message
news:ur******** ******@TK2MSFTN GP11.phx.gbl...
Maybe you could take the time to tell us what the error message is?

sheesh

"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..

"Alistair" <news@*remove*a listairb.co.uk> wrote in message
news:vv******** ****@corp.super news.com...
can anyone see why this wouldn't work...it's driving me nuts

Set objcdmail = Server.CreateOb ject("CDONTS.Ne wMail")
objcdmail.From = "me@mydomain.co m"
objcdmail.To = "me@mydomain.co m"
objcdmail.Subje ct = "test"
objcdmail.Body = "testing"
objcdmail.send
Set objcdmail = Nothing

I have copied this from another page that I have. The original page takes the details from a form on another page, so the results above are all
request.form("w hatever") etc, and the original works!!

but if I try to put fixed values in as above it fails to work and I can't see why??

I've even tried a response.write to check the values..and they look right, but no mail is sent


If you aren't getting an ASP error returned, then your problem is not

within
your code. It is something else, like your SMTP service is not running,
your SMTP server does not allow relaying from your machine or to that
domain, or you have an invalid e-mail header. Take a look at the event

logs
on your machine for some hints. Also browse around \inetpub\mailro ot\*

and
look at files in a text editor like notepad and see if you see your

e-mails
in any of those folders.


I'm running win XP pro but have taken the CDONTS.DLL from my win 2000
pc and
done the regsv32 etc etc


Why?

Ray at work


Jul 19 '05 #4

"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:O5******** ******@TK2MSFTN GP09.phx.gbl...
It sounds to me that there is no error message. So, chances are the e-mail is getting created and dropped in the pickup folder just fine, and the
problem lies within the SMTP service, mail relaying restrictions,
unacceptable mail header, or some other issue along those lines.


yup, you're right..no error messages but....

following your advice I looked around the mailroot folder and I have a few
in badmail, a whole stack in drop and quite a few in queue.

don't know why this is but for the moment I wont worry about it. The script
works fine when uploaded to some webspace. Just means I spent hours looking
for a fault that never existed.

thanks anyway
Jul 19 '05 #5

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

Similar topics

9
1690
by: dthmtlgod | last post by:
I am having an e-mail being sent from a form submitting on a web page. Right now, it is just a generic name (not a valid e-mail address) in the Mail From box. "Web Server Request". How can I add a reply to piece to this, so when a user clicks on Reply, it sends it to a valid e-mail address. Thank you
5
2770
by: Stuart Palmer | last post by:
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.CreateObject("CDONTS.NewMail") objSendmail.From = "test@test.com" objSendmail.To = "myaccount@home.com" objSendmail.Subject = "Subject Line"
6
11197
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I will include the code I originally used. I understand I should switch from CDONTS to CDO mail but after several sttempts I am finding a very hard time getting the new CDO mail to work properly. Any assistance with this would be greatly...
2
1752
by: Paul Turley | last post by:
Does anyone have some sample code for sending an HTML formatted message using CDONTS? Thanks RE: Sending HTML formatted mail using CDONTS -- Paul Turley, MCSD, MCAD, MCT, MSF Practitioner, A+ Technician
12
1303
by: DanB | last post by:
When I try to send email using the System.Web.Mail namespace I get an exception of Could not Create CDO.message object. FYI - I worked for a long time with a similar exception of "Could not create CDO.message object". I think I resolved that by registering CDO.dll. I am running VB.NET 2002, Framework 1.0 (Even though I have installed
14
1673
by: simchajoy2000 | last post by:
Hi, This question will probably be too simplistic for all of you, but I am trying to teach myself asp and I am having all sorts of problems. I have a simple html form which calls process.asp on submit: <html> <head></head> <body> <form action="process.asp" method=Post>
3
3730
by: Pav | last post by:
Hi, I am developing a small Intranet web application which needs to send mails to our coporate Ids. I am using CDONTS, But my mails never leave Que folder. Not able to find out what the problem is . please help 1) I am very new to SMTP configiration on my own Windows XP PC. How do I configure to send mails. We Use Lotus Notes as our mail. Please
4
2976
by: bgs | last post by:
i'm trying to send mail from asp server in two ways, the first uses CDONTS.Newmail: <% Dim objCDOMail Set objCDOMail = Server.CreateObject("CDONTS.NewMail") objCDOMail.BodyFormat = 1 objCDOMail.Subject="test"
3
3467
by: Prasad | last post by:
Hi all, I had to write a page in ASP which sends an email. I googled and was able to write the following code: <html> <body> <% Set Mail = Server.CreateObject("CDONTS.NewMail") Mail.To = "XXXXXXXXXXXX@XXXXXX.COM"
0
9711
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9591
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10594
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10331
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10087
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6861
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.