Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: CDONTS


Message #1 by "Elizabeta Siljanovski" <elizabetas@m...> on Thu, 3 Jan 2002 11:17:10 -0500
This is a multi-part message in MIME format.



------=_NextPart_000_0001_01C19448.33DCD070

Content-Type: text/plain;

	charset="us-ascii"

Content-Transfer-Encoding: 7bit



Hi,

 

I need to send outomated e-mail as user updates the database. I'm a bit

mixed up with how to set up CDONTS code so that the values are actually

passed to it from the previous page form. Are there any obevious

problems with this? This is how I'm attempting to do it:

 

Set mail=server.CreateObject("CDONTS.NewMail")

mail.From="JaneDoe@s..."

mail.To="JaneDoe@s..."

mailSubject="Subject"

mail.Body = "User: & session("userName")& "<br> Room : & Room &

"<br>"Equipment: " & Equipment & "<br>Part: " & Part & "<br>

Description: " & Description & "<br>" 'where Room, Equipment and  Part

are set as variables with values passed from previous form.

mail.BodyFormat = 0

mail.Importance = 0

mail.Send

set mail=nothing

%>

 

 

 

Thanks in advance!








Message #2 by "Kim Iwan Hansen" <kimiwan@k...> on Thu, 3 Jan 2002 17:40:57 +0100
This is a multi-part message in MIME format.



------=_NextPart_000_0024_01C1947D.CD49C030

Content-Type: text/plain;

	charset="us-ascii"

Content-Transfer-Encoding: 7bit



it works just like any other passing of variables from one page to another.



your problem is probably that you're missing some double quotes here and

there ;-)



your email body:

mail.Body = "User: & session("userName")& "<br> Room : & Room & "<br>"

Equipment: " & Equipment & "<br>Part: " & Part & "<br> Description: " &

Description & "<br>"



should be:

mail.Body = "User: " & session("userName") & "<br>Room : " & Room &

"<br>Equipment: " & Equipment & "<br>Part: " & Part & "<br>Description: " &

Description & "<br>"



you can always try and response.write the string you're attaching to the

body, just like you do with the sql string when you're having trouble with a

database query.



-Kim

  -----Original Message-----

  From: Elizabeta Siljanovski [mailto:elizabetas@m...]

  Sent: 3. januar 2002 17:17

  To: ASP Databases

  Subject: [asp_databases] CDONTS





  Hi,







  I need to send outomated e-mail as user updates the database. I'm a bit

mixed up with how to set up CDONTS code so that the values are actually

passed to it from the previous page form. Are there any obevious problems

with this? This is how I'm attempting to do it:







  Set mail=server.CreateObject("CDONTS.NewMail")



  mail.From="JaneDoe@s..."



  mail.To="JaneDoe@s..."



  mailSubject="Subject"



  mail.Body = "User: & session("userName")& "<br> Room : & Room & "<br>"

Equipment: " & Equipment & "<br>Part: " & Part & "<br> Description: " &

Description & "<br>" 'where Room, Equipment and  Part are set as variables

with values passed from previous form.



  mail.BodyFormat = 0



  mail.Importance = 0



  mail.Send



  set mail=nothing



  %>















  Thanks in advance!






$subst('Email.Unsub').






Message #3 by Sam Clohesy <sam@e...> on Thu, 3 Jan 2002 17:07:03 -0000
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01C19479.10A3D2D0

Content-Type: text/plain;

	charset="iso-8859-1"



Does anyone know if there is a donnet mailing list??

 

Something like:

<% @ LANGUAGE = VBSCRIPT %> <% @ LANGUAGE = VBSCRIPT %>

 

<!--#include file="include/inc_functions.asp"-->

<%

 

strEmailFrom = request.form ("txtemail")

strSubject = " enquiries"

strEmailTo = "anaddress.com"

strBcc = " samc@e... <mailto:samc@e...> "

 

strBody = strBody & "My Contact form" & vbCrLf

strBody = strBody & "===================================" & vbCrLf

strBody = strBody & "Name: " & request.form ("txtname")& vbCrLf

strBody = strBody & "Email: " & request.form ("txtemail")& vbCrLf

strBody = strBody & "Telephone: " & request.form ("txttelephone")& vbCrLf &

vbCrLf

strBody = strBody & request.form ("txtmessage") & vbCrLf & vbCrLf

strBody = strBody & "===================================" & vbCrLf

strBody = strBody & "Powered by etypemedia.co.uk" & vbCrLf

  

call sendMail(strBody, strEmailFrom, strEmailTo, strSubject, strBcc)

 

response.redirect ("contactus.asp?opt=1")

 

inc functions has this:

 

Sub sendMail(strBody, strEmailFrom, strEmailTo, strSubject, strBcc)

 

 Set objMail=Server.CreateObject("CDONTS.NewMail")

 objMail.To=strEmailTo

 

  If strEmailFrom="" Then

   strEmailFrom=" youraddress.co.uk <mailto:belle@m...> "

  End If

 

 objMail.From=strEmailFrom

 objMail.bcc= strBcc

 

 objMail.Body=strBody

 objMail.Subject=strSubject

 

 objMail.Send

 Set objMail=Nothing

 

End Sub

<% @ LANGUAGE = VBSCRIPT %> <% @ LANGUAGE = VBSCRIPT %> <% @ LANGUAGE 

VBSCRIPT %> 

Is this useful?

 

Sam Clohesy 

Project Manager 

Tel: 0208 772 3958 

E: samc@e... 

W: http://www.etypemedia.co.uk <http://www.etypemedia.co.uk/>  

-----Original Message-----

From: Elizabeta Siljanovski [mailto:elizabetas@m...]

Sent: 03 January 2002 16:17

To: ASP Databases

Subject: [asp_databases] CDONTS





Hi,

 

I need to send outomated e-mail as user updates the database. I'm a bit

mixed up with how to set up CDONTS code so that the values are actually

passed to it from the previous page form. Are there any obevious problems

with this? This is how I'm attempting to do it:

 

Set mail=server.CreateObject("CDONTS.NewMail")

mail.From=" JaneDoe@s... <mailto:JaneDoe@s...> "

mail.To=" JaneDoe@s... <mailto:JaneDoe@s...> "

mailSubject="Subject"

mail.Body = "User: & session("userName")& "<br> Room : & Room &

"<br>"Equipment: " & Equipment & "<br>Part: " & Part & "<br> Description: "

& Description & "<br>" 'where Room, Equipment and  Part are set as variables

with values passed from previous form.

mail.BodyFormat = 0

mail.Importance = 0

mail.Send

set mail=nothing

%>

 

 

 

Thanks in advance!




$subst('Email.Unsub'). 




Message #4 by "Elizabeta Siljanovski" <elizabetas@m...> on Thu, 3 Jan 2002 12:29:06 -0500
This is a multi-part message in MIME format.



------=_NextPart_000_0016_01C19452.3F98C450

Content-Type: text/plain;

	charset="us-ascii"

Content-Transfer-Encoding: 7bit



Thank you Kim!

 

-----Original Message-----

From: Kim Iwan Hansen [mailto:kimiwan@k...] 

Sent: Thursday, January 03, 2002 11:41 AM

To: ASP Databases

Subject: [asp_databases] RE: CDONTS

 

it works just like any other passing of variables from one page to

another.

 

your problem is probably that you're missing some double quotes here and

there ;-)

 

your email body:

mail.Body = "User: & session("userName")& "<br> Room : & Room &

"<br>"Equipment: " & Equipment & "<br>Part: " & Part & "<br>

Description: " & Description & "<br>"

 

should be:

mail.Body = "User: " & session("userName") & "<br>Room : " & Room &

"<br>Equipment: " & Equipment & "<br>Part: " & Part & "<br>Description:

" & Description & "<br>"

 

you can always try and response.write the string you're attaching to the

body, just like you do with the sql string when you're having trouble

with a database query.

 

-Kim

-----Original Message-----

From: Elizabeta Siljanovski [mailto:elizabetas@m...]

Sent: 3. januar 2002 17:17

To: ASP Databases

Subject: [asp_databases] CDONTS

Hi,

 

I need to send outomated e-mail as user updates the database. I'm a bit

mixed up with how to set up CDONTS code so that the values are actually

passed to it from the previous page form. Are there any obevious

problems with this? This is how I'm attempting to do it:

 

Set mail=server.CreateObject("CDONTS.NewMail")

mail.From="JaneDoe@s..."

mail.To="JaneDoe@s..."

mailSubject="Subject"

mail.Body = "User: & session("userName")& "<br> Room : & Room &

"<br>"Equipment: " & Equipment & "<br>Part: " & Part & "<br>

Description: " & Description & "<br>" 'where Room, Equipment and  Part

are set as variables with values passed from previous form.

mail.BodyFormat = 0

mail.Importance = 0

mail.Send

set mail=nothing

%>

 

 

 

Thanks in advance!




$subst('Email.Unsub'). 




$subst('Email.Unsub'). 








Message #5 by "Elizabeta Siljanovski" <elizabetas@m...> on Thu, 3 Jan 2002 12:35:26 -0500
This is a multi-part message in MIME format.



------=_NextPart_000_001D_01C19453.229B15F0

Content-Type: text/plain;

	charset="us-ascii"

Content-Transfer-Encoding: 7bit



It makes sense,

Thank you!

 

-----Original Message-----

From: Sam Clohesy [mailto:sam@e...] 

Sent: Thursday, January 03, 2002 12:07 PM

To: ASP Databases

Subject: [asp_databases] RE: CDONTS

 

Does anyone know if there is a donnet mailing list??

 

Something like:

<% @ LANGUAGE = VBSCRIPT %> <% @ LANGUAGE = VBSCRIPT %>

 

<!--#include file="include/inc_functions.asp"-->

<%

 

strEmailFrom = request.form ("txtemail")

strSubject = " enquiries"

strEmailTo = "anaddress.com"

strBcc = "samc@e..."

 

strBody = strBody & "My Contact form" & vbCrLf

strBody = strBody & "===================================" & vbCrLf

strBody = strBody & "Name: " & request.form ("txtname")& vbCrLf

strBody = strBody & "Email: " & request.form ("txtemail")& vbCrLf

strBody = strBody & "Telephone: " & request.form ("txttelephone")&

vbCrLf & vbCrLf

strBody = strBody & request.form ("txtmessage") & vbCrLf & vbCrLf

strBody = strBody & "===================================" & vbCrLf

strBody = strBody & "Powered by etypemedia.co.uk" & vbCrLf

  

call sendMail(strBody, strEmailFrom, strEmailTo, strSubject, strBcc)

 

response.redirect ("contactus.asp?opt=1")

 

inc functions has this:

 

Sub sendMail(strBody, strEmailFrom, strEmailTo, strSubject, strBcc)

 

 Set objMail=Server.CreateObject("CDONTS.NewMail")

 objMail.To=strEmailTo

 

  If strEmailFrom="" Then

   strEmailFrom="youraddress.co.uk <mailto:belle@m...> "

  End If

 

 objMail.From=strEmailFrom

 objMail.bcc= strBcc

 

 objMail.Body=strBody

 objMail.Subject=strSubject

 

 objMail.Send

 Set objMail=Nothing

 

End Sub

<% @ LANGUAGE = VBSCRIPT %> <% @ LANGUAGE = VBSCRIPT %> <% @ LANGUAGE 

VBSCRIPT %> 

Is this useful?

 

Sam Clohesy 

Project Manager 

Tel: 0208 772 3958 

E: samc@e... 

W: http://www.etypemedia.co.uk <http://www.etypemedia.co.uk/>  

-----Original Message-----

From: Elizabeta Siljanovski [mailto:elizabetas@m...]

Sent: 03 January 2002 16:17

To: ASP Databases

Subject: [asp_databases] CDONTS

Hi,

 

I need to send outomated e-mail as user updates the database. I'm a bit

mixed up with how to set up CDONTS code so that the values are actually

passed to it from the previous page form. Are there any obevious

problems with this? This is how I'm attempting to do it:

 

Set mail=server.CreateObject("CDONTS.NewMail")

mail.From="JaneDoe@s..."

mail.To="JaneDoe@s..."

mailSubject="Subject"

mail.Body = "User: & session("userName")& "<br> Room : & Room &

"<br>"Equipment: " & Equipment & "<br>Part: " & Part & "<br>

Description: " & Description & "<br>" 'where Room, Equipment and  Part

are set as variables with values passed from previous form.

mail.BodyFormat = 0

mail.Importance = 0

mail.Send

set mail=nothing

%>

 

 

 

Thanks in advance!




$subst('Email.Unsub'). 




$subst('Email.Unsub'). 








Message #6 by arshad siddiqui <ash_arshad@y...> on Sun, 6 Jan 2002 05:32:14 -0800 (PST)
Hi,

Can any one tell me how to configure my SMTP so that I

can use Cdonts component for sending and receiving

mail in ASP.

Thank you

Regards

--Arshad--





__________________________________________________

Do You Yahoo!?

Send FREE video emails in Yahoo! Mail!

http://promo.yahoo.com/videomail/

Message #7 by Kyle Burns <kburns@c...> on Mon, 7 Jan 2002 14:24:25 -0500
The first thing that I noticed is that, in your .Body property you have an

unterminated string.  The line:



mail.Body = "User: & session("userName")& "<br> Room : & Room &

"<br>"Equipment: " & Equipment & "<br>Part: " & Part & "<br> Description: "

& Description & "<br>"



Should read:



mail.Body = "User: " & session("userName") & "<br> Room : " & Room &

"<br>Equipment: " & Equipment & "<br>Part: " & Part & "<br> Description: " &

Description & "<br>"









=================================

Kyle M. Burns, MCSD, MCT

ECommerce Technology Manager

Centra Credit Union

kburns@c...



  

-----Original Message-----

From: Elizabeta Siljanovski [mailto:elizabetas@m...]

Sent: Thursday, January 03, 2002 11:17 AM

To: ASP Databases

Subject: [asp_databases] CDONTS





Hi,

 

I need to send outomated e-mail as user updates the database. I'm a bit

mixed up with how to set up CDONTS code so that the values are actually

passed to it from the previous page form. Are there any obevious problems

with this? This is how I'm attempting to do it:

 

Set mail=server.CreateObject("CDONTS.NewMail")

mail.From="JaneDoe@s..."

mail.To="JaneDoe@s..."

mailSubject="Subject"

mail.Body = "User: & session("userName")& "<br> Room : & Room &

"<br>"Equipment: " & Equipment & "<br>Part: " & Part & "<br> Description: "

& Description & "<br>" 'where Room, Equipment and  Part are set as variables

with values passed from previous form.

mail.BodyFormat = 0

mail.Importance = 0

mail.Send

set mail=nothing

%>

 

 

 

Thanks in advance!




$subst('Email.Unsub'). 


  Return to Index