473,802 Members | 2,172 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting a CDONT parameter

My website sends automatic emails from many (25) different places. I want to
send a second email by reading the parameters of the first one. I don't want
to have to repeat and maintain the assignment of the second email
From,To,Subject fields so I am just using an include at each point in the
code where I send an email:

Set MyCDONTSMail = CreateObject("C DONTS.NewMail")
MyCDONTSMail.Bo dyFormat= 0
MyCDONTSMail.Ma ilFormat= 1
MyCDONTSMail.Fr om= fr************* *@whatever.com
MyCDONTSMail.To = to*******@whate ver.com
MyCDONTSMail.Su bject="some subject"
MyCDONTSMail.Bo dy= "some text":
%>
<!--#include file="SendFollo wUpEmail.asp" -->
<%
MyCDONTSMail.Se nd
set MyCDONTSMail=no thing
-------------------------------------------------------------------------------
The SendFollowUpEma il.asp just wants to take the From,To,Subject parameters
that are defined in the original email and add a different body:

Set MyCDONTSMail2 = CreateObject("C DONTS.NewMail")
MyCDONTSMail2.B odyFormat= 0
MyCDONTSMail2.M ailFormat= 1
MyCDONTSMail2.F rom= MyCDONTSMail.Fr om
MyCDONTSMail2.T o= MyCDONTSMail.To
MyCDONTSMail2.S ubject=MyCDONTS Mail.Subject
MyCDONTSMail2.B ody= "some new text"
MyCDONTSMail2.S end
set MyCDONTSMail2=n othing

It chokes on this:

MyCDONTSMail2.F rom= MyCDONTSMail.Fr om

Object doesn't support this property or method: 'MyCDONTSMail.F rom'

Seems to me MyCDONTSMail.Fr om is only a string, why can't I retrieve its
value? More to the point though - how can I retrieve its value?

Thanks!
Feb 1 '06 #1
11 3005
Instead of doing that, just do:

Set MyCDONTSMail = CreateObject("C DONTS.NewMail")
MyCDONTSMail.Bo dyFormat= 0
MyCDONTSMail.Ma ilFormat= 1
MyCDONTSMail.Fr om= fr************* *@whatever.com
MyCDONTSMail.Su bject="some subject"
MyCDONTSMail.Bo dy= "some text":

MyCDONTSMail.To = to*******@whate ver.com
MyCDONTSMail.Se nd

MyCDONTSMail.To = so************* *@example.com
MyCDONTSMail.Se nd

MyCDONTSMail.To = an************* **@example.com
MyCDONTSMail.Se nd

MyCDONTSMail.To = so************* *****@example.c om
MyCDONTSMail.Se nd

MyCDONTSMail.To = an***********@e xample.com
MyCDONTSMail.Se nd

....etc....

Are you running this in a Windows NT server? If not, you shouldn't be using
the old technology CDONTS. Please read:
http://www.aspfaq.com/show.asp?id=2026

Ray at work
"Simon Wigzell" <si**********@s haw.ca> wrote in message
news:Sy8Ef.4095 06$2k.270920@pd 7tw1no...
My website sends automatic emails from many (25) different places. I want
to send a second email by reading the parameters of the first one. I don't
want to have to repeat and maintain the assignment of the second email
From,To,Subject fields so I am just using an include at each point in the
code where I send an email:

Set MyCDONTSMail = CreateObject("C DONTS.NewMail")
MyCDONTSMail.Bo dyFormat= 0
MyCDONTSMail.Ma ilFormat= 1
MyCDONTSMail.Fr om= fr************* *@whatever.com
MyCDONTSMail.To = to*******@whate ver.com
MyCDONTSMail.Su bject="some subject"
MyCDONTSMail.Bo dy= "some text":
%>
<!--#include file="SendFollo wUpEmail.asp" -->
<%
MyCDONTSMail.Se nd

Feb 1 '06 #2
Simon Wigzell wrote:
It chokes on this:

MyCDONTSMail2.F rom= MyCDONTSMail.Fr om


Naturally. The [From] property is write-only:
http://msdn.microsoft.com/library/en...36b8054c57.asp

Use Ray's suggestion. Better yet, use CDO.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Feb 1 '06 #3
The from address and the to address and the subject aren't known in advance,
I'm talking about a programmed website here.

I just want to know if there is a way to retrieve what has been set into a
CDONT structure, if it isn't possible then say so. I don't want to know a
different way of programming my website, its working fine. So I guess I have
to go back into all 25 pages where I do this and write specific code to send
the second email because it is not possible to retrieve what has been set
into a CDONT, ok, thanks.

(Looking up at the sky and rolling eyes)
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Instead of doing that, just do:

Set MyCDONTSMail = CreateObject("C DONTS.NewMail")
MyCDONTSMail.Bo dyFormat= 0
MyCDONTSMail.Ma ilFormat= 1
MyCDONTSMail.Fr om= fr************* *@whatever.com
MyCDONTSMail.Su bject="some subject"
MyCDONTSMail.Bo dy= "some text":

MyCDONTSMail.To = to*******@whate ver.com
MyCDONTSMail.Se nd

MyCDONTSMail.To = so************* *@example.com
MyCDONTSMail.Se nd

MyCDONTSMail.To = an************* **@example.com
MyCDONTSMail.Se nd

MyCDONTSMail.To = so************* *****@example.c om
MyCDONTSMail.Se nd

MyCDONTSMail.To = an***********@e xample.com
MyCDONTSMail.Se nd

...etc....

Are you running this in a Windows NT server? If not, you shouldn't be
using the old technology CDONTS. Please read:
http://www.aspfaq.com/show.asp?id=2026

Ray at work
"Simon Wigzell" <si**********@s haw.ca> wrote in message
news:Sy8Ef.4095 06$2k.270920@pd 7tw1no...
My website sends automatic emails from many (25) different places. I want
to send a second email by reading the parameters of the first one. I
don't want to have to repeat and maintain the assignment of the second
email From,To,Subject fields so I am just using an include at each point
in the code where I send an email:

Set MyCDONTSMail = CreateObject("C DONTS.NewMail")
MyCDONTSMail.Bo dyFormat= 0
MyCDONTSMail.Ma ilFormat= 1
MyCDONTSMail.Fr om= fr************* *@whatever.com
MyCDONTSMail.To = to*******@whate ver.com
MyCDONTSMail.Su bject="some subject"
MyCDONTSMail.Bo dy= "some text":
%>
<!--#include file="SendFollo wUpEmail.asp" -->
<%
MyCDONTSMail.Se nd


Feb 2 '06 #4
Not the best response if you want to continue getting help here ....

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Simon Wigzell" <si**********@s haw.ca> wrote in message
news:CcfEf.3066 02$tl.107165@pd 7tw3no...
The from address and the to address and the subject aren't known in advance, I'm talking about a programmed website here.

I just want to know if there is a way to retrieve what has been set into a
CDONT structure, if it isn't possible then say so. I don't want to know a
different way of programming my website, its working fine. So I guess I have to go back into all 25 pages where I do this and write specific code to send the second email because it is not possible to retrieve what has been set
into a CDONT, ok, thanks.

(Looking up at the sky and rolling eyes)
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Instead of doing that, just do:

Set MyCDONTSMail = CreateObject("C DONTS.NewMail")
MyCDONTSMail.Bo dyFormat= 0
MyCDONTSMail.Ma ilFormat= 1
MyCDONTSMail.Fr om= fr************* *@whatever.com
MyCDONTSMail.Su bject="some subject"
MyCDONTSMail.Bo dy= "some text":

MyCDONTSMail.To = to*******@whate ver.com
MyCDONTSMail.Se nd

MyCDONTSMail.To = so************* *@example.com
MyCDONTSMail.Se nd

MyCDONTSMail.To = an************* **@example.com
MyCDONTSMail.Se nd

MyCDONTSMail.To = so************* *****@example.c om
MyCDONTSMail.Se nd

MyCDONTSMail.To = an***********@e xample.com
MyCDONTSMail.Se nd

...etc....

Are you running this in a Windows NT server? If not, you shouldn't be
using the old technology CDONTS. Please read:
http://www.aspfaq.com/show.asp?id=2026

Ray at work
"Simon Wigzell" <si**********@s haw.ca> wrote in message
news:Sy8Ef.4095 06$2k.270920@pd 7tw1no...
My website sends automatic emails from many (25) different places. I want to send a second email by reading the parameters of the first one. I
don't want to have to repeat and maintain the assignment of the second
email From,To,Subject fields so I am just using an include at each point in the code where I send an email:

Set MyCDONTSMail = CreateObject("C DONTS.NewMail")
MyCDONTSMail.Bo dyFormat= 0
MyCDONTSMail.Ma ilFormat= 1
MyCDONTSMail.Fr om= fr************* *@whatever.com
MyCDONTSMail.To = to*******@whate ver.com
MyCDONTSMail.Su bject="some subject"
MyCDONTSMail.Bo dy= "some text":
%>
<!--#include file="SendFollo wUpEmail.asp" -->
<%
MyCDONTSMail.Se nd



Feb 2 '06 #5
Well - I couldn't have been more explicit describing my problem and what I
wanted to know, yet my problem remains unanswered and unadressed, meanwhile
I have been given some unrelated and useless advice, so yes, you are
probably right.
"Steven Burn" <so*******@in-time.invalid> wrote in message
news:Ov******** ******@TK2MSFTN GP14.phx.gbl...
Not the best response if you want to continue getting help here ....

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Simon Wigzell" <si**********@s haw.ca> wrote in message
news:CcfEf.3066 02$tl.107165@pd 7tw3no...
The from address and the to address and the subject aren't known in

advance,
I'm talking about a programmed website here.

I just want to know if there is a way to retrieve what has been set into
a
CDONT structure, if it isn't possible then say so. I don't want to know a
different way of programming my website, its working fine. So I guess I

have
to go back into all 25 pages where I do this and write specific code to

send
the second email because it is not possible to retrieve what has been set
into a CDONT, ok, thanks.

(Looking up at the sky and rolling eyes)
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
> Instead of doing that, just do:
>
> Set MyCDONTSMail = CreateObject("C DONTS.NewMail")
> MyCDONTSMail.Bo dyFormat= 0
> MyCDONTSMail.Ma ilFormat= 1
> MyCDONTSMail.Fr om= fr************* *@whatever.com
> MyCDONTSMail.Su bject="some subject"
> MyCDONTSMail.Bo dy= "some text":
>
> MyCDONTSMail.To = to*******@whate ver.com
> MyCDONTSMail.Se nd
>
> MyCDONTSMail.To = so************* *@example.com
> MyCDONTSMail.Se nd
>
> MyCDONTSMail.To = an************* **@example.com
> MyCDONTSMail.Se nd
>
> MyCDONTSMail.To = so************* *****@example.c om
> MyCDONTSMail.Se nd
>
> MyCDONTSMail.To = an***********@e xample.com
> MyCDONTSMail.Se nd
>
> ...etc....
>
> Are you running this in a Windows NT server? If not, you shouldn't be
> using the old technology CDONTS. Please read:
> http://www.aspfaq.com/show.asp?id=2026
>
> Ray at work
>
>
> "Simon Wigzell" <si**********@s haw.ca> wrote in message
> news:Sy8Ef.4095 06$2k.270920@pd 7tw1no...
>> My website sends automatic emails from many (25) different places. I want >> to send a second email by reading the parameters of the first one. I
>> don't want to have to repeat and maintain the assignment of the second
>> email From,To,Subject fields so I am just using an include at each point >> in the code where I send an email:
>>
>> Set MyCDONTSMail = CreateObject("C DONTS.NewMail")
>> MyCDONTSMail.Bo dyFormat= 0
>> MyCDONTSMail.Ma ilFormat= 1
>> MyCDONTSMail.Fr om= fr************* *@whatever.com
>> MyCDONTSMail.To = to*******@whate ver.com
>> MyCDONTSMail.Su bject="some subject"
>> MyCDONTSMail.Bo dy= "some text":
>> %>
>> <!--#include file="SendFollo wUpEmail.asp" -->
>> <%
>> MyCDONTSMail.Se nd
>
>



Feb 2 '06 #6
Simon Wigzell wrote:
...yet my problem remains unanswered and unadressed...


Incorrect. I directly addressed and answered it.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Feb 2 '06 #7
On Thu, 02 Feb 2006 06:46:33 GMT, "Simon Wigzell" <si**********@s haw.ca> wrote:
in <dVhEf.534342$k i.526673@pd7tw2 no>
Well - I couldn't have been more explicit describing my problem and what I
wanted to know, yet my problem remains unanswered and unadressed, meanwhile
I have been given some unrelated and useless advice, so yes, you are
probably right.


Oh I understand. This is something like "My mind is made up. Don't confuse me
with the facts!"

No problem.

---
Stefan Berglund
Feb 2 '06 #8
and here is another very good cdosys article

http://www.powerasp.com/content/new/...ail_cdosys.asp
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Instead of doing that, just do:

Set MyCDONTSMail = CreateObject("C DONTS.NewMail")
MyCDONTSMail.Bo dyFormat= 0
MyCDONTSMail.Ma ilFormat= 1
MyCDONTSMail.Fr om= fr************* *@whatever.com
MyCDONTSMail.Su bject="some subject"
MyCDONTSMail.Bo dy= "some text":

MyCDONTSMail.To = to*******@whate ver.com
MyCDONTSMail.Se nd

MyCDONTSMail.To = so************* *@example.com
MyCDONTSMail.Se nd

MyCDONTSMail.To = an************* **@example.com
MyCDONTSMail.Se nd

MyCDONTSMail.To = so************* *****@example.c om
MyCDONTSMail.Se nd

MyCDONTSMail.To = an***********@e xample.com
MyCDONTSMail.Se nd

...etc....

Are you running this in a Windows NT server? If not, you shouldn't be
using the old technology CDONTS. Please read:
http://www.aspfaq.com/show.asp?id=2026

Ray at work
"Simon Wigzell" <si**********@s haw.ca> wrote in message
news:Sy8Ef.4095 06$2k.270920@pd 7tw1no...
My website sends automatic emails from many (25) different places. I want
to send a second email by reading the parameters of the first one. I
don't want to have to repeat and maintain the assignment of the second
email From,To,Subject fields so I am just using an include at each point
in the code where I send an email:

Set MyCDONTSMail = CreateObject("C DONTS.NewMail")
MyCDONTSMail.Bo dyFormat= 0
MyCDONTSMail.Ma ilFormat= 1
MyCDONTSMail.Fr om= fr************* *@whatever.com
MyCDONTSMail.To = to*******@whate ver.com
MyCDONTSMail.Su bject="some subject"
MyCDONTSMail.Bo dy= "some text":
%>
<!--#include file="SendFollo wUpEmail.asp" -->
<%
MyCDONTSMail.Se nd


Feb 2 '06 #9
I apologise for being cranky, just one of those days.

I have been progrmaming for 20 years and never met a language or structure
where you could assign a value to something but not get it back. My intent
here was to try to do something once, instead I ahve to do it 25 times. Oh
well, c'est la vie.

Again, I apologise for my cranky ungrateful comments to your well meaning
replies!
Feb 3 '06 #10

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

Similar topics

1
1714
by: Simon Wigzell | last post by:
I'm generating HTML formatted emails in my asp program using CDONT. Depending on hoow ling the link is it will sometimes wrap and ruin the link. The is Detail email properties listing : ------=_NextPart_000_0314_01C418C2.90C5F130 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit At your request, we have created a webpage message for you: here...
2
6930
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on a type mismatch. It is positively because of the boolean(java primitive)parameter. It goes fine if I change this parameter to int or String. This inteface has a lot more methods which works fine, it is just the
1
2229
by: Simon Wigzell | last post by:
I send HTML formatted emails with links and images in them generated by my asp driven website. Occasionally the image will not appear and the link will not work. By looking at the email at the receive end, (right click/properties/details/message source, this is what I sent: <p align="center" style="margin-top: 0; margin-bottom: 0"><a href="http://www.mississippiprinting.com/MPCHomeOld.asp"> <img border="0"...
2
1586
by: Rajiv | last post by:
hi all , i have to send the mail to all the employees of the company , e-mail address is stored in a table . i m using cdont component to send the mail , what are the basic requirement of cdont how to install cdont on server 2000 and is it necessary that smtp server
2
8091
by: Martin Raychev | last post by:
Hi all, I have the following problem: I have a private method that returns a SqlDataReader. For this to work I have not to close the DB connection in the above method. I do this only to
1
2044
by: Simon Wigzell | last post by:
Is it possible to extract from a CDONT a value that has been added to it? e.g. can I say: MyCDONTSMail.From="some email address" MyCDONTSMail.To="some other email address" MyCDONTSMail.Subject="some subject" MyCDONTSMail.Body="some body" And then get those values later in the program e.g.:
2
3701
by: scotdb | last post by:
I'm trying to get the SQLERRMC info from the SQLCA into my SP so that I can use the information it provides. I'm successfully getting the SQLCODE and SQLSTATE and so added the SQLERRMC to the code which obtains these. It doesn't seem to work however - create procedure dbair001.sp001testerr ( ,OUT p_sqlstate CHAR(5) ,OUT p_sqlcode INTEGER ,OUT p_sqlerrmc VARCHAR(70)
1
12324
by: John Bailo | last post by:
This is a my solution to getting an Output parameter from a SqlDataSource. I have seen a few scant articles but none of them take it all the way to a solution. Hopefully this will help some poor soul. Situation: I want to do a lookup using a stored procedure for each value in a Row within a GridView. I use a lookup function in my code behind, evaluating the necessary bound fields. The problem is the SqlDataSource representing...
1
1373
by: bijuvellur | last post by:
why the mail goes to bulk? when we use ASP code using CDONT mail object
0
9699
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
10536
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
10285
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
10063
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
9114
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5494
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...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
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
3
2966
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.