Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: ASP and e-mail


Message #1 by "Elizabeta Siljanovski" <elizabetas@m...> on Wed, 21 Nov 2001 20:26:43 -0500
This is a multi-part message in MIME format.



------=_NextPart_000_0001_01C172CA.D90D91F0

Content-Type: text/plain;

	charset="us-ascii"

Content-Transfer-Encoding: 7bit



I need to let the user send an e-mail to an administrator. Basically, I

give them a Recordset to pick some fields and they can also add message

body to it. The receiver has to get both those fields values and what

user entered in (probably) textarea. I didn't see any examples of CDONTS

doing something like this.

 

Any ideas???

 

Thanks!








Message #2 by David Cameron <dcameron@i...> on Thu, 22 Nov 2001 12:34:58 +1100
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_01C172F5.E9BAA7C4

Content-Type: text/plain



' Declare at top or wrap into an include file

Const CdoBodyFormatText = 1

Const CdoBodyFormatHTML = 0



' Other code goes here



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

cdoObj.BodyFormat = CdoBodyFormatText

cdoObj.To = ...

cdoObj.From = ...

cdoObj.Subject = ...

cdoObj.Body = ...

cdoObj.Send

Set cdoObj = Nothing



regards

David Cameron

nOw.b2b

dcameron@i...



>  -----Original Message-----

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

> Sent:	Thursday, 22 November 2001 11:27 AM

> To:	ASP Databases

> Subject:	[asp_databases] ASP and e-mail

> 

> I need to let the user send an e-mail to an administrator. Basically, I

give them a Recordset to pick some fields and they can also add message body

to it. The receiver has to get both those fields values and what user

entered in (probably) textarea. I didn't see any examples of CDONTS doing

something like this.

>  

> Any ideas???

>  

> Thanks!

> 




$subst('Email.Unsub')

> 




Message #3 by "Elizabeta Siljanovski" <elizabetas@m...> on Wed, 21 Nov 2001 20:44:21 -0500
This is a multi-part message in MIME format.



------=_NextPart_000_000F_01C172CD.4FC5CDB0

Content-Type: text/plain;

	charset="us-ascii"

Content-Transfer-Encoding: 7bit



Yes, but how I'm I supposed to incorporate that with message that user

adds as well as the recordset values that they pick?








Message #4 by David Cameron <dcameron@i...> on Thu, 22 Nov 2001 12:53:12 +1100
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_01C172F8.73AE369C

Content-Type: text/plain



Use Request.Form("<your field name>") to get the values they selected.



Use rs("<field name>") to get values from a recordset.



Use & to concatenate (join) strings.



Replace the ... in the code I sent earlier with appropriate values generated

using the above methods.



regards

David Cameron

nOw.b2b

dcameron@i...



>  -----Original Message-----

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

> Sent:	Thursday, 22 November 2001 11:44 AM

> To:	ASP Databases

> Subject:	[asp_databases] RE: ASP and e-mail

> 

> Yes, but how I'm I supposed to incorporate that with message that user

adds as well as the recordset values that they pick?

> 




$subst('Email.Unsub')

> 




Message #5 by "Elizabeta Siljanovski" <elizabetas@m...> on Mon, 26 Nov 2001 14:07:05 -0500
This is a multi-part message in MIME format.



------=_NextPart_000_000D_01C17683.A436E960

Content-Type: text/plain;

	charset="us-ascii"

Content-Transfer-Encoding: 7bit



Hi,

This is not working. Do you mind checking it out?

 

Thanks!

 

This is before the <HTML> tag:

<%

Const CdoBodyFormatText = 1 

Const CdoBodyFormatHTML = 0 

'Dim cdoObj (it acts the same with or without this line)

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

cdoObj.BodyFormat = CdoBodyFormatText

 cdoObj.To = "elizabetas@m..." 

cdoObj.From = Request.Form ("Name") 

cdoObj.Subject ="online store" 

cdoObj.Body = Request.Form("Name") 

cdoObj.Send 

Set cdoObj = Nothing

%>








Message #6 by Selvaraj PT <PSelvaraj@s...> on Mon, 26 Nov 2001 14:14:41 -0500
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_01C176AE.9996D2B0

Content-Type: text/plain;

	charset="iso-8859-1"



Do you get any Error??

 

Pon.

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

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

Sent: Monday, November 26, 2001 2:07 PM

To: ASP Databases

Subject: [asp_databases] RE: ASP and e-mail





Hi,

This is not working. Do you mind checking it out?

 

Thanks!

 

This is before the <HTML> tag:

<%

Const CdoBodyFormatText = 1 

Const CdoBodyFormatHTML = 0 

'Dim cdoObj (it acts the same with or without this line)

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

cdoObj.BodyFormat = CdoBodyFormatText

 cdoObj.To = "elizabetas@m..." 

cdoObj.From = Request.Form ("Name") 

cdoObj.Subject ="online store" 

cdoObj.Body = Request.Form("Name") 

cdoObj.Send 

Set cdoObj = Nothing

%>





pselvaraj@s...


$subst('Email.Unsub')







  Return to Index