473,795 Members | 2,865 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDOSYS forms

My provider removed suddenly the CDONTS from the server. Now I have to
change my forms and I have to use the CDOSYS functionaltity

Till now I used one script that could do the work with one page. I could
send all my forms to that page and this page conveyed all the input by
email.

Now I want to make a script that can do the same job. This is too diffucult
for me. I can make a script for the normal input for email forms but I want
to use forms with far more variables than To, From, Message, etc..

Can someone show me the way to an example of such a script?
Thanks in advance
Marcel
Dec 28 '06
12 2218

"Egbert Nierop (MVP for IIS)" <eg***********@ nospam.invalids chreef in
bericht news:%2******** *******@TK2MSFT NGP02.phx.gbl.. .
>
"Basr" <mo****@hetnet. nlwrote in message
news:45******** **************@ text.nova.plane t.nl...

"Egbert Nierop (MVP for IIS)" <eg***********@ nospam.invalids chreef in
bericht news:um******** *****@TK2MSFTNG P02.phx.gbl...
>
"Basr" <mo****@hetnet. nlwrote in message
news:45******** *************** @text.nova.plan et.nl...
Thanks Mike, it will take six weeks to find what I'm looking for!

Marcel

>
Public Sub SendMail(vFrom, vTo, vSubject, vCc)
Dim cdoConfig, mail, sch
Set cdoConfig = CreateObject("C DO.Configuratio n")
Set mail = CreateObject("C DO.Message")

sch = "http://schemas.microso ft.com/cdo/configuration/"
with cdoConfig.field s
.item(sch + "sendpassword") .value ="piet1234_"
.item(sch + "sendusername") .value = "yourmailaddres scomeshere"
.item(sch + "smtpauthentica te").value = 1 'cdoBasic
.item(sch + "sendusing").va lue = 2 'cdoSendUsingPo rt
.item(sch + "smtpserver").v alue = "the IP or hostname of your SMTP
server here"
.Update()
End With
Set mail.Configurat ion = cdoConfig
If IsArray(vSubjec t) Then
mail.Subject = vSubject(0)
mail.TextBody = vSubjEct(1)
Else
mail.Subject = Left(vSubject, 255)
mail.TextBody = vSubject
End If
mail.to = vTo
mail.From = vFrom
If not isempty(vCc) Then mail.Cc = vCc

mail.Send
End Sub
--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm

Egbert

I saw that in this script my password is required and I think that' s too
dagerous. The script is not entirely what I meant because it only deals with
the usual parts of an email message (To, From etc.). I have the impression
that the script does not deal with other input fields. I am looking for an
example that sends the input from a simple form to my emailadres. Example
fields are; Name, Email, BrandCar. Build, Color; CNumber, Location, etc. I
want the input from this fields in the email.

In the past I found a provider (which is not mine) that gave an example for
this purpose but it was with CDONTS. I could use as many variables as I
wanted, the script could handle everything. My own provider removed CDONTS
unexpectedly. It does not offer examples att all. I tried many examples from
the internet but not one of them can do what I need.
I have to look a little further I suppose.
Thanks for your help
Marcel
Dec 29 '06 #11
Basr,

People spoon fed you the info you need and you still don't get it.
It is the info you need.

You don't understand code so what makes you think you have any business
deciding what is secure or not. It's real simple. Using CDOSYS you can add
as much info to the email code as you like. It's like an ice cream at the
local stand. You order it the way you want. If you want sprinkles you frigin
order them, the same as if you want to attach a file to the email or add a
bcc. It is just lines of code you add. As for any other fields you have they
HAVE JACK to do with the functionality of the email sending code. You
obviously have to take the information you have and prep it to be used in
the body of the email. You build a string. It's basic stuff. As for sending
an email using POP3 SMTP Authentication make a special email account jsut
for that if you are worried about the email password being used in the code.

arrrgggg...

"Basr" <mo****@hetnet. nlwrote in message
news:45******** *************** @text.nova.plan et.nl...
>
"Egbert Nierop (MVP for IIS)" <eg***********@ nospam.invalids chreef in
bericht news:%2******** *******@TK2MSFT NGP02.phx.gbl.. .
>>
"Basr" <mo****@hetnet. nlwrote in message
news:45******* *************** @text.nova.plan et.nl...
>
"Egbert Nierop (MVP for IIS)" <eg***********@ nospam.invalids chreef in
bericht news:um******** *****@TK2MSFTNG P02.phx.gbl...

"Basr" <mo****@hetnet. nlwrote in message
news:45******* *************** *@text.nova.pla net.nl...
Thanks Mike, it will take six weeks to find what I'm looking for!

Marcel


>>
Public Sub SendMail(vFrom, vTo, vSubject, vCc)
Dim cdoConfig, mail, sch
Set cdoConfig = CreateObject("C DO.Configuratio n")
Set mail = CreateObject("C DO.Message")

sch = "http://schemas.microso ft.com/cdo/configuration/"
with cdoConfig.field s
.item(sch + "sendpassword") .value ="piet1234_"
.item(sch + "sendusername") .value = "yourmailaddres scomeshere"
.item(sch + "smtpauthentica te").value = 1 'cdoBasic
.item(sch + "sendusing").va lue = 2 'cdoSendUsingPo rt
.item(sch + "smtpserver").v alue = "the IP or hostname of your SMTP
server here"
.Update()
End With
Set mail.Configurat ion = cdoConfig
If IsArray(vSubjec t) Then
mail.Subject = vSubject(0)
mail.TextBody = vSubjEct(1)
Else
mail.Subject = Left(vSubject, 255)
mail.TextBody = vSubject
End If
mail.to = vTo
mail.From = vFrom
If not isempty(vCc) Then mail.Cc = vCc

mail.Send
End Sub
--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm


Egbert

I saw that in this script my password is required and I think that' s too
dagerous. The script is not entirely what I meant because it only deals
with
the usual parts of an email message (To, From etc.). I have the impression
that the script does not deal with other input fields. I am looking for an
example that sends the input from a simple form to my emailadres. Example
fields are; Name, Email, BrandCar. Build, Color; CNumber, Location, etc. I
want the input from this fields in the email.

In the past I found a provider (which is not mine) that gave an example
for
this purpose but it was with CDONTS. I could use as many variables as I
wanted, the script could handle everything. My own provider removed CDONTS
unexpectedly. It does not offer examples att all. I tried many examples
from
the internet but not one of them can do what I need.
I have to look a little further I suppose.
Thanks for your help
Marcel



Dec 29 '06 #12
Allright

I think I have to study asp a little bit more. My knowledge of ASP is poor
but I could understand the script with the CDONTS code. If the examples that
were given in this thread do the same thing, than there's realy something
wrong with my conception of CDOSYS. I think I have to buy a good book that
explains it all.
It was not my intension to be ungrateful to you or other persons who tried
to help me. I am sorry if I gave that impression.

Thanks all
Marcel
"Kyle Peterson" <ky*****@hotmai l.comschreef in bericht
news:el******** ******@TK2MSFTN GP04.phx.gbl...
Basr,

People spoon fed you the info you need and you still don't get it.
It is the info you need.

You don't understand code so what makes you think you have any business
deciding what is secure or not. It's real simple. Using CDOSYS you can add
as much info to the email code as you like. It's like an ice cream at the
local stand. You order it the way you want. If you want sprinkles you
frigin
order them, the same as if you want to attach a file to the email or add a
bcc. It is just lines of code you add. As for any other fields you have
they
HAVE JACK to do with the functionality of the email sending code. You
obviously have to take the information you have and prep it to be used in
the body of the email. You build a string. It's basic stuff. As for
sending
an email using POP3 SMTP Authentication make a special email account jsut
for that if you are worried about the email password being used in the
code.
>
arrrgggg...

"Basr" <mo****@hetnet. nlwrote in message
news:45******** *************** @text.nova.plan et.nl...

"Egbert Nierop (MVP for IIS)" <eg***********@ nospam.invalids chreef in
bericht news:%2******** *******@TK2MSFT NGP02.phx.gbl.. .
>
"Basr" <mo****@hetnet. nlwrote in message
news:45******** **************@ text.nova.plane t.nl...

"Egbert Nierop (MVP for IIS)" <eg***********@ nospam.invalids chreef
in
bericht news:um******** *****@TK2MSFTNG P02.phx.gbl...

"Basr" <mo****@hetnet. nlwrote in message
news:45******** *************** @text.nova.plan et.nl...
Thanks Mike, it will take six weeks to find what I'm looking for!

Marcel


>
Public Sub SendMail(vFrom, vTo, vSubject, vCc)
Dim cdoConfig, mail, sch
Set cdoConfig = CreateObject("C DO.Configuratio n")
Set mail = CreateObject("C DO.Message")

sch = "http://schemas.microso ft.com/cdo/configuration/"
with cdoConfig.field s
.item(sch + "sendpassword") .value ="piet1234_"
.item(sch + "sendusername") .value = "yourmailaddres scomeshere"
.item(sch + "smtpauthentica te").value = 1 'cdoBasic
.item(sch + "sendusing").va lue = 2 'cdoSendUsingPo rt
.item(sch + "smtpserver").v alue = "the IP or hostname of your
SMTP
server here"
.Update()
End With
Set mail.Configurat ion = cdoConfig
If IsArray(vSubjec t) Then
mail.Subject = vSubject(0)
mail.TextBody = vSubjEct(1)
Else
mail.Subject = Left(vSubject, 255)
mail.TextBody = vSubject
End If
mail.to = vTo
mail.From = vFrom
If not isempty(vCc) Then mail.Cc = vCc

mail.Send
End Sub
--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm

Egbert

I saw that in this script my password is required and I think that' s
too
dagerous. The script is not entirely what I meant because it only deals
with
the usual parts of an email message (To, From etc.). I have the
impression
that the script does not deal with other input fields. I am looking for
an
example that sends the input from a simple form to my emailadres.
Example
fields are; Name, Email, BrandCar. Build, Color; CNumber, Location, etc.
I
want the input from this fields in the email.

In the past I found a provider (which is not mine) that gave an example
for
this purpose but it was with CDONTS. I could use as many variables as I
wanted, the script could handle everything. My own provider removed
CDONTS
unexpectedly. It does not offer examples att all. I tried many examples
from
the internet but not one of them can do what I need.
I have to look a little further I suppose.
Thanks for your help
Marcel



Dec 29 '06 #13

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

Similar topics

1
1611
by: Paxton | last post by:
Is it necessary to set field configurations for CDOSYS? I have yet to recode all my existing uses of CDONTS over to CDOSYS. In most of the sample code I've seen on the usual ASP sites, there is code to set field configurations for CDOSYS (usually using With... End With). However, in a number of CDOSYS-related code samples offered within this news group, the field configuration code is absent.
14
13433
by: Neil Ginsberg | last post by:
I am using VBA/Access to send SMTP mail using CDO. I set a reference to "Microsoft CDO for Windows 2000 Library" (cdosys.dll). Everything works fine, both on my PC and on another PC. However, on another PC that the database was installed on, the user is getting the message, "The project contains a missing or broken reference to the file 'CDO.DLL' version 1.21." However, I don't have a reference to cdo.dll; my reference is to cdosys.dll....
24
6277
by: Manuel | last post by:
Is it possible to embed an image, like a company logo in a CDOSYS generated message? If yes, I´ll apreciate some code sample. I´ve been able to format messages in html the way I like, but I can't figure out how to embed an image. Thanks for your time. -- Manuel
1
1154
by: jinimg | last post by:
How will use CDOSYS technology in sending email forms in asp
8
7550
by: Akbur | last post by:
Dear all, I'm having major issues sending an email from my ASP.NET app. I'm getting a "Could not create 'CDO.Message' object". When I did a search for cdosys.dll in \win_location\system32, I could not find it. So I copied it from another Windows 2003 server, where it did exist. Another dependant file was missing too (inetcomm.dll).
0
1406
by: david220 | last post by:
hi once members sign up to my site they get sent an email which contains there username/password which they enter on a sign up form. Once they've signed up the email is automatically sent using the code below. The site uses classic asp and vbscript, with the email bit in cdonts. I recently changed hosts and they use cdosys. I have used cdosys email before but are'nt sure how to get it to connect to the asp bits they enter on the sign...
2
5373
by: mister-Ed | last post by:
Trying to use cdosys mail, but this is giving me an "no such object" error. the hosting company is not much help, but their list of components offered does include cdosys mail: <form method="post" action="cdosys-godaddy.asp"><p class="bodymd- wh">Your Name: <input type="text" name="uname" id="uname"> <br>City: <input type="text" name="city" id="city"> <br>State:
1
1380
by: worldofrugs | last post by:
I'm hosted on a shared server with Godaddy.com... I have several forms on my website that all use the same ASP file to send out my forms.. It worked fine for a long time, but now the forms send to my e-mail arrive after a few hours instead of instantly. Calling Godaddy did not help as they stated all is working fine (no delays) on their end and refuse to help with custom scripts.. My emails are also hosted by godaddy like my website. ...
9
3029
by: paulmitchell507 | last post by:
I have a file called email2.asp which I am using to mail data obtained from a SQL query. I would like to pass the holiday_ID value in the querystring attached to the end of the URL. It all works except that I can't get the value of holiday_ID included as a querystring. As a test I can insert a value after the ?id= and this is passed as a querystring. I am sure it's just the syntax that I am having problem with
0
9672
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
10436
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...
0
10213
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10163
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
10000
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
9040
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
5436
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...
1
4113
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
2920
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.