can anyone see why this wouldn't work...it's driving me nuts
Set objcdmail = Server.CreateObject("CDONTS.NewMail")
objcdmail.From = "me@mydomain.com"
objcdmail.To = "me@mydomain.com"
objcdmail.Subject = "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("whatever") 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 4 2225
"Alistair" <news@*remove*alistairb.co.uk> wrote in message
news:vv************@corp.supernews.com... can anyone see why this wouldn't work...it's driving me nuts
Set objcdmail = Server.CreateObject("CDONTS.NewMail") objcdmail.From = "me@mydomain.com" objcdmail.To = "me@mydomain.com" objcdmail.Subject = "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("whatever") 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\mailroot\* 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
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****************@TK2MSFTNGP10.phx.gbl... "Alistair" <news@*remove*alistairb.co.uk> wrote in message news:vv************@corp.supernews.com... can anyone see why this wouldn't work...it's driving me nuts
Set objcdmail = Server.CreateObject("CDONTS.NewMail") objcdmail.From = "me@mydomain.com" objcdmail.To = "me@mydomain.com" objcdmail.Subject = "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("whatever") 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\mailroot\*
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
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**************@TK2MSFTNGP11.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****************@TK2MSFTNGP10.phx.gbl... "Alistair" <news@*remove*alistairb.co.uk> wrote in message news:vv************@corp.supernews.com... can anyone see why this wouldn't work...it's driving me nuts
Set objcdmail = Server.CreateObject("CDONTS.NewMail") objcdmail.From = "me@mydomain.com" objcdmail.To = "me@mydomain.com" objcdmail.Subject = "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("whatever") 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\mailroot\* 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
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:O5**************@TK2MSFTNGP09.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
...
|
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 =...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
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...
|
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...
|
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...
| |