Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Adding attachments


Message #1 by "StephenB" <stephenb@w...> on Mon, 4 Dec 2000 11:38:16 -0000
From Boris Gruening [Boris_Gruening@a...]



I'd like to attach a file to a message. Is there any support for this? How

to



do?



Thanx



Boris







Message #2 by "Harsh Nandu" <harsh_stgil@h...> on Mon, 04 Dec 2000 12:56:40 -0000
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")

	objCDOMail.From = strFROM

	objCDOMail.To = strTO

	objCDOMail.Subject = strSUB

	objCDOMail.Body = strBODY

	objCDOMail.AttachFile <Physical Path>,<File Name>

	objCDOMail.Send





>From: "StephenB" <stephenb@w...>

>Reply-To: "ASP CDO" <asp_cdo@p...>

>To: "ASP CDO" <asp_cdo@p...>

>Subject: [asp_cdo] Adding attachments

>Date: Mon, 4 Dec 2000 11:38:16 -0000

>

>From Boris Gruening [Boris_Gruening@a...]

>

>I'd like to attach a file to a message. Is there any support for this? How

>to

>

>do?

>

>Thanx

>

>Boris

>

>

>

>

Message #3 by "Tom Molskow" <tmolskow@h...> on Mon, 04 Dec 2000 08:50:56 -0500
Yep,



Here it is:



<%



Dim objMail

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



objMail.Form = "user1@e..."

objMail.To = "user2@e..."

objMail.Subject = "Attach a file using CDO"

objMail.Body = "Here is an example."

objMail.AttachFile Server.MapPath("attachment.txt")

objMail.Send



Set objMail = Nothing



%>



Hope that helps!



Tom



>From: "StephenB" <stephenb@w...>

>Reply-To: "ASP CDO" <asp_cdo@p...>

>To: "ASP CDO" <asp_cdo@p...>

>Subject: [asp_cdo] Adding attachments

>Date: Mon, 4 Dec 2000 11:38:16 -0000

>

>From Boris Gruening [Boris_Gruening@a...]

>

>I'd like to attach a file to a message. Is there any support for this? How

>to

>

>do?

>

>Thanx

>

>Boris

>

>

>

>

Tom Molskow

Developer/Programmer

Microsoft Web Technologies



xxx-xxx-xxxx

Message #4 by kiran_devi@c... on 4 Dec 2000 14:43:50 +0000
hi,



  You can use CDONTS object and its attachfile property for attaching the file to the message.





with regards

Devi kiran





On Mon, 04 December 2000, "StephenB" wrote:



> 

> From Boris Gruening [Boris_Gruening@a...]

> 

> I'd like to attach a file to a message. Is there any support for this? How

> to

> 

> do?

> 

> Thanx

> 

> Boris

> 

> 

> 

> 


  Return to Index