Hi,
I have a page that sends user comments with CDONTS, works fine.
Until I put a URL ( http://192.168.0.1).
If I use http://domain.com it works fine.
Why with the numeric URL, CDONTS does not send the mail??
Thanks
Mario 7 2546
Is that really all that's different? Can you show your code? Any SMTP
events in any event logs on the server? And bad mail in the badmail
directory? Are you on an NT server? If not, have you tried using CDO
instead of CDONTS?
Ray at work
"Mario Leduc" <ml****@ncc-ccn.ca> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. Hi,
I have a page that sends user comments with CDONTS, works fine. Until I put a URL (http://192.168.0.1). If I use http://domain.com it works fine.
Why with the numeric URL, CDONTS does not send the mail??
Thanks
Mario
Here is the code
Dim rqEmail, rqSubject, rqBody, interface
rqEmail = Request.Form("e mail")
rqSubject = Request.Form("s ubject")
rqBody = Request.Form("b ody")
rqInterface = Request.Form("i nterface")
rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>"
Dim objMail
Set objMail = CreateObject("C DONTS.NewMail")
objMail.From = rqEmail
objMail.To = "em***@domain.c om"
objMail.Subject = rqSubject
objMail.MailFor mat = 1
objMail.BodyFor mat = 1
objMail.Body = rqBody
On error resume next
objMail.Send
Set objMail = nothing
If rqInterface = "2" Then
Response.Redire ct("/contactus/thanks_f.asp")
Else
Response.Redire ct("/contactus/thanks_e.asp")
End If
Whats the diference between CDO and CDONTS anyway?
Thanks
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. . Is that really all that's different? Can you show your code? Any SMTP events in any event logs on the server? And bad mail in the badmail directory? Are you on an NT server? If not, have you tried using CDO instead of CDONTS?
Ray at work
"Mario Leduc" <ml****@ncc-ccn.ca> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. Hi,
I have a page that sends user comments with CDONTS, works fine. Until I put a URL (http://192.168.0.1). If I use http://domain.com it works fine.
Why with the numeric URL, CDONTS does not send the mail??
Thanks
Mario
Where does the IP address come from?
Try this modified version for debugging purposes:
Dim rqEmail, rqSubject, rqBody, interface
rqEmail = Request.Form("e mail")
rqSubject = Request.Form("s ubject")
rqBody = Request.Form("b ody")
rqInterface = Request.Form("i nterface")
rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>"
RESPONSE.WRITE "EMAIL: " & rqEmail & "<hr>"
RESPONSE.WRITE "SUBJECT: " & rsSubject & "<hr>"
RESPONSE.WRITE "BODY: " & rqBody & "<hr>"
Dim objMail
Set objMail = CreateObject("C DONTS.NewMail")
objMail.From = rqEmail
objMail.To = "em***@domain.c om"
objMail.Subject = rqSubject
objMail.MailFor mat = 1
objMail.BodyFor mat = 1
objMail.Body = rqBody
'' On error resume next THIS IS COMMENTED OUT, SINCE YOU'RE DEBUGGING...
objMail.Send
Set objMail = nothing
RESPONSE.END
If rqInterface = "2" Then
Response.Redire ct("/contactus/thanks_f.asp")
Else
Response.Redire ct("/contactus/thanks_e.asp")
End If
What's rq? Whats the diference between CDO and CDONTS anyway?
CDONTS = old technology
CDO = new technology
See here: http://www.aspfaq.com/show.asp?id=2026
And if you miss the link, also see here: http://support.microsoft.com/?kbid=810702
Ray at work
I converted to CDO still not working when I put something like this in the
body http://192.168.0.2/
but if I put http://www.domain.com/ it worked?
Here is the code
Dim rqEmail, rqSubject, rqBody, interface
rqEmail = Request.Form("e mail")
rqSubject = Request.Form("s ubject")
rqBody = Request.Form("b ody")
rqInterface = Request.Form("i nterface")
rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>"
Response.Write "Email = " & rqEmail & "<BR>"
Response.Write "Subject = " & rqSubject & "<BR>"
Response.Write "Body = " & rqBody & "<BR>"
Dim cdoMessage
Set cdoMessage = CreateObject("C DO.Message")
With cdoMessage
.From = rqEmail
.To = "ml****@ncc-ccn.ca"
.Subject = rqSubject
.TextBody = rqBody
.Send
End With
Set cdoMessage = Nothing
rq stands for request
only for differentiate from body
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Where does the IP address come from? Try this modified version for debugging purposes:
Dim rqEmail, rqSubject, rqBody, interface rqEmail = Request.Form("e mail") rqSubject = Request.Form("s ubject") rqBody = Request.Form("b ody") rqInterface = Request.Form("i nterface")
rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>"
RESPONSE.WRITE "EMAIL: " & rqEmail & "<hr>" RESPONSE.WRITE "SUBJECT: " & rsSubject & "<hr>" RESPONSE.WRITE "BODY: " & rqBody & "<hr>"
Dim objMail Set objMail = CreateObject("C DONTS.NewMail")
objMail.From = rqEmail objMail.To = "em***@domain.c om" objMail.Subject = rqSubject objMail.MailFor mat = 1 objMail.BodyFor mat = 1 objMail.Body = rqBody
'' On error resume next THIS IS COMMENTED OUT, SINCE YOU'RE DEBUGGING... objMail.Send Set objMail = nothing
RESPONSE.END
If rqInterface = "2" Then Response.Redire ct("/contactus/thanks_f.asp") Else Response.Redire ct("/contactus/thanks_e.asp") End If
What's rq?
Whats the diference between CDO and CDONTS anyway?
CDONTS = old technology CDO = new technology
See here: http://www.aspfaq.com/show.asp?id=2026 And if you miss the link, also see here: http://support.microsoft.com/?kbid=810702
Ray at work
Any SMTP
events in any event logs on the server? And bad mail in the badmail
directory?
Try this modified version for debugging purposes:
Dim rqEmail, rqSubject, rqBody, interface
rqEmail = Request.Form("e mail")
rqSubject = Request.Form("s ubject")
rqBody = Request.Form("b ody")
rqInterface = Request.Form("i nterface")
rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>"
RESPONSE.WRITE "EMAIL: " & rqEmail & "<hr>"
RESPONSE.WRITE "SUBJECT: " & rsSubject & "<hr>"
RESPONSE.WRITE "BODY: " & rqBody & "<hr>"
Dim objMail
Set objMail = CreateObject("C DO.Message")
objMail.From = rqEmail
objMail.To = "em***@domain.c om"
objMail.Subject = rqSubject
objMail.TextyBo dy = rqBody
'' On error resume next THIS IS COMMENTED OUT, SINCE YOU'RE DEBUGGING...
objMail.Send
Set objMail = nothing
RESPONSE.END
"Mario Leduc" <ml****@ncc-ccn.ca> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. I converted to CDO still not working when I put something like this in the body http://192.168.0.2/
but if I put http://www.domain.com/ it worked?
Here is the code
Dim rqEmail, rqSubject, rqBody, interface rqEmail = Request.Form("e mail") rqSubject = Request.Form("s ubject") rqBody = Request.Form("b ody") rqInterface = Request.Form("i nterface")
rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>"
Response.Write "Email = " & rqEmail & "<BR>" Response.Write "Subject = " & rqSubject & "<BR>" Response.Write "Body = " & rqBody & "<BR>"
Dim cdoMessage Set cdoMessage = CreateObject("C DO.Message")
With cdoMessage .From = rqEmail .To = "ml****@ncc-ccn.ca" .Subject = rqSubject .TextBody = rqBody .Send End With
Set cdoMessage = Nothing
rq stands for request only for differentiate from body
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Where does the IP address come from? Try this modified version for debugging purposes:
Dim rqEmail, rqSubject, rqBody, interface rqEmail = Request.Form("e mail") rqSubject = Request.Form("s ubject") rqBody = Request.Form("b ody") rqInterface = Request.Form("i nterface")
rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>"
RESPONSE.WRITE "EMAIL: " & rqEmail & "<hr>" RESPONSE.WRITE "SUBJECT: " & rsSubject & "<hr>" RESPONSE.WRITE "BODY: " & rqBody & "<hr>"
Dim objMail Set objMail = CreateObject("C DONTS.NewMail")
objMail.From = rqEmail objMail.To = "em***@domain.c om" objMail.Subject = rqSubject objMail.MailFor mat = 1 objMail.BodyFor mat = 1 objMail.Body = rqBody
'' On error resume next THIS IS COMMENTED OUT, SINCE YOU'RE
DEBUGGING... objMail.Send Set objMail = nothing
RESPONSE.END
If rqInterface = "2" Then Response.Redire ct("/contactus/thanks_f.asp") Else Response.Redire ct("/contactus/thanks_e.asp") End If
What's rq?
Whats the diference between CDO and CDONTS anyway?
CDONTS = old technology CDO = new technology
See here: http://www.aspfaq.com/show.asp?id=2026 And if you miss the link, also see here: http://support.microsoft.com/?kbid=810702
Ray at work
SMTP event log does not contains any error nor that any badmail in the bad
mail folder
Tried your debug code, can see the body with the http://192.168.0.1/ in the
response.write, but the mail was not sent??
If I put 192.168.0.1 without the http:// it worked??
Is it a bug of CDO??
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:uM******** ******@TK2MSFTN GP12.phx.gbl... Any SMTP events in any event logs on the server? And bad mail in the badmail directory?
Try this modified version for debugging purposes:
Dim rqEmail, rqSubject, rqBody, interface rqEmail = Request.Form("e mail") rqSubject = Request.Form("s ubject") rqBody = Request.Form("b ody") rqInterface = Request.Form("i nterface")
rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>"
RESPONSE.WRITE "EMAIL: " & rqEmail & "<hr>" RESPONSE.WRITE "SUBJECT: " & rsSubject & "<hr>" RESPONSE.WRITE "BODY: " & rqBody & "<hr>"
Dim objMail Set objMail = CreateObject("C DO.Message")
objMail.From = rqEmail objMail.To = "em***@domain.c om" objMail.Subject = rqSubject objMail.TextyBo dy = rqBody
'' On error resume next THIS IS COMMENTED OUT, SINCE YOU'RE DEBUGGING... objMail.Send Set objMail = nothing
RESPONSE.END
"Mario Leduc" <ml****@ncc-ccn.ca> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. I converted to CDO still not working when I put something like this in
the body http://192.168.0.2/
but if I put http://www.domain.com/ it worked?
Here is the code
Dim rqEmail, rqSubject, rqBody, interface rqEmail = Request.Form("e mail") rqSubject = Request.Form("s ubject") rqBody = Request.Form("b ody") rqInterface = Request.Form("i nterface")
rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>"
Response.Write "Email = " & rqEmail & "<BR>" Response.Write "Subject = " & rqSubject & "<BR>" Response.Write "Body = " & rqBody & "<BR>"
Dim cdoMessage Set cdoMessage = CreateObject("C DO.Message")
With cdoMessage .From = rqEmail .To = "ml****@ncc-ccn.ca" .Subject = rqSubject .TextBody = rqBody .Send End With
Set cdoMessage = Nothing
rq stands for request only for differentiate from body
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Where does the IP address come from? Try this modified version for debugging purposes:
Dim rqEmail, rqSubject, rqBody, interface rqEmail = Request.Form("e mail") rqSubject = Request.Form("s ubject") rqBody = Request.Form("b ody") rqInterface = Request.Form("i nterface")
rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>"
RESPONSE.WRITE "EMAIL: " & rqEmail & "<hr>" RESPONSE.WRITE "SUBJECT: " & rsSubject & "<hr>" RESPONSE.WRITE "BODY: " & rqBody & "<hr>"
Dim objMail Set objMail = CreateObject("C DONTS.NewMail")
objMail.From = rqEmail objMail.To = "em***@domain.c om" objMail.Subject = rqSubject objMail.MailFor mat = 1 objMail.BodyFor mat = 1 objMail.Body = rqBody
'' On error resume next THIS IS COMMENTED OUT, SINCE YOU'RE DEBUGGING... objMail.Send Set objMail = nothing
RESPONSE.END
If rqInterface = "2" Then Response.Redire ct("/contactus/thanks_f.asp") Else Response.Redire ct("/contactus/thanks_e.asp") End If
What's rq?
> Whats the diference between CDO and CDONTS anyway?
CDONTS = old technology CDO = new technology
See here: http://www.aspfaq.com/show.asp?id=2026 And if you miss the link, also see here: http://support.microsoft.com/?kbid=810702
Ray at work
Is the mail in the pickup directory or the queue directory? I suppose it
could be a bug.
Ray at work
"Mario Leduc" <ml****@ncc-ccn.ca> wrote in message
news:et******** *****@TK2MSFTNG P12.phx.gbl... SMTP event log does not contains any error nor that any badmail in the bad mail folder
Tried your debug code, can see the body with the http://192.168.0.1/ in
the response.write, but the mail was not sent??
If I put 192.168.0.1 without the http:// it worked??
Is it a bug of CDO??
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message news:uM******** ******@TK2MSFTN GP12.phx.gbl... Any SMTP events in any event logs on the server? And bad mail in the badmail directory?
Try this modified version for debugging purposes:
Dim rqEmail, rqSubject, rqBody, interface rqEmail = Request.Form("e mail") rqSubject = Request.Form("s ubject") rqBody = Request.Form("b ody") rqInterface = Request.Form("i nterface")
rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>"
RESPONSE.WRITE "EMAIL: " & rqEmail & "<hr>" RESPONSE.WRITE "SUBJECT: " & rsSubject & "<hr>" RESPONSE.WRITE "BODY: " & rqBody & "<hr>"
Dim objMail Set objMail = CreateObject("C DO.Message")
objMail.From = rqEmail objMail.To = "em***@domain.c om" objMail.Subject = rqSubject objMail.TextyBo dy = rqBody
'' On error resume next THIS IS COMMENTED OUT, SINCE YOU'RE
DEBUGGING... objMail.Send Set objMail = nothing
RESPONSE.END
"Mario Leduc" <ml****@ncc-ccn.ca> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. I converted to CDO still not working when I put something like this in the body http://192.168.0.2/
but if I put http://www.domain.com/ it worked?
Here is the code
Dim rqEmail, rqSubject, rqBody, interface rqEmail = Request.Form("e mail") rqSubject = Request.Form("s ubject") rqBody = Request.Form("b ody") rqInterface = Request.Form("i nterface")
rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>"
Response.Write "Email = " & rqEmail & "<BR>" Response.Write "Subject = " & rqSubject & "<BR>" Response.Write "Body = " & rqBody & "<BR>"
Dim cdoMessage Set cdoMessage = CreateObject("C DO.Message")
With cdoMessage .From = rqEmail .To = "ml****@ncc-ccn.ca" .Subject = rqSubject .TextBody = rqBody .Send End With
Set cdoMessage = Nothing
rq stands for request only for differentiate from body
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in
message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. > Where does the IP address come from? > > > > Try this modified version for debugging purposes: > > > Dim rqEmail, rqSubject, rqBody, interface > rqEmail = Request.Form("e mail") > rqSubject = Request.Form("s ubject") > rqBody = Request.Form("b ody") > rqInterface = Request.Form("i nterface") > > rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>" > > RESPONSE.WRITE "EMAIL: " & rqEmail & "<hr>" > RESPONSE.WRITE "SUBJECT: " & rsSubject & "<hr>" > RESPONSE.WRITE "BODY: " & rqBody & "<hr>" > > > Dim objMail > Set objMail = CreateObject("C DONTS.NewMail") > > objMail.From = rqEmail > objMail.To = "em***@domain.c om" > objMail.Subject = rqSubject > objMail.MailFor mat = 1 > objMail.BodyFor mat = 1 > objMail.Body = rqBody > > '' On error resume next THIS IS COMMENTED OUT, SINCE YOU'RE
DEBUGGING... > objMail.Send > Set objMail = nothing > > RESPONSE.END > > If rqInterface = "2" Then > Response.Redire ct("/contactus/thanks_f.asp") > Else > Response.Redire ct("/contactus/thanks_e.asp") > End If > > > What's rq? > > > Whats the diference between CDO and CDONTS anyway? > > CDONTS = old technology > CDO = new technology > > See here: > http://www.aspfaq.com/show.asp?id=2026 > And if you miss the link, also see here: > http://support.microsoft.com/?kbid=810702 > > Ray at work > > > > > > > > > > > > > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Seeker |
last post by:
Hi!
I have to do some developing and I'm trying to configure my server to mimic
the operation of our production server. The issue I'm having is that I'm
trying to use CDONTS to send an email under IIS on a Windows 2003 Server.
The server does not have the SMTP service running, but I do have a third
party SMTP/POP/IMAP server running.
I have copied the CDONTS.DLL file and registered it. In the Web Serice
Extensions I have enabled the...
|
by: dave |
last post by:
I am trying to generate an email from the webpage using code below, which
works fine. However I want to be able to include some dyanmic data how do I
go about it ?can anybody point me in the direction of some sample code ?
Thanks Dave
<%@ Language=VBScript %>
<HTML>
<HEAD>
|
by: tom |
last post by:
Hi people -
I've been trying to make run this form mail with CDONTS but doesnt work at
all!
it's the first time am using it,could anybody check out where the error
might be and let me know, please?
I trust in you, please help me
- bye tom
|
by: BaWork |
last post by:
I have a web form where a client can select which site members to send
an email to.
This form is populated from the contents of the member table, so the
form can have 0-x names listed on it depending on member expiration dates.
When the form is submitted, the code loops through the form contents and
sends an email to those members that meet the selected criteria.
All this worked perfectly when I was sending text emails, but since I
|
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...
| |
by: summer |
last post by:
Hello,
I'm not receiving my email, I believe I'm almost there, but can't
figure out what I'm missing. Any Clue would be appreciated.
Here's my html and asp code. I've included the cdovbs.inc file in the
root of my website, I thought that maybe my error.
Thank you,
Summer
|
by: Dr. Harvey Waxman |
last post by:
I guess I should change from cdonts to cdosys. Since I am ignorant about asp I
hope you forgive this basic question. There are two asp files for handling
mail, the one that gets the info from a form and creates a form.asp to mail and
the one that takes that file and mails it, mail.asp.
I believe I can figure out what needs to be altered in the code for the first
form.asp but what needs to be changed in the one that sends the email? Is...
|
by: Paul |
last post by:
I have just started work on a system using CDONTS to mail out.
Whilst this is fine on the server, my local development machine is using XP
Pro with IIS5.1 installed.
Is there a way I can get the functionality of cdonts so that I can
test/develop on my local machine, preferably without actually sending any
mail to the persons involved.
|
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"
|
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...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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,...
|
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...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |