Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: html formated email using CDONTS


Message #1 by Pappas Nikos <pappas@c...> on Thu, 21 Jun 2001 00:06:46 +0300



Hi there

any help or articles about CDONTS email in HTML format.

Is it possible?

Thanks in advance

Best regards

Nikos



Message #2 by "Karthik Iyer" <i_karthik@h...> on Thu, 21 Jun 2001 10:56:47 +0530
Try using,



.Mailformat = 0

.Bodyformat = 0

Property of CDONTS.

and make your Body of the message in a HTML format.



Karthik



>From: Pappas Nikos <pappas@c...>

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

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

>Subject: [asp_cdo] html formated email using CDONTS

>Date: Thu, 21 Jun 2001 00:06:46 +0300

>

>

>

>Hi there

>any help or articles about CDONTS email in HTML format.

>Is it possible?

>Thanks in advance

>Best regards

>Nikos



Message #3 by Foster Nathaniel <nfoster@s...> on Fri, 22 Jun 2001 07:58:47 -0400
Yes it is, but the reciepient must have a mail program who accept this type

of mail....

Well here an exemple







<%

Dim MessageBody, TempVariable



TempVariable = "Hello"



MessageBody = "<HTML><HEAD><TITLE>My Web Page</TITLE></HEAD><BODY

BGCOLOR='blue'><TABLE Border='0' WIDTH='100%'><TR><TD>" & TempVariable &

"</TD></TR></TABLE></BODY></HTML>"



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

objMsg.BodyFormat = 0 (here you set html body format)

objMsg.MailFormat = 0 (here you set mime, if i remember well)

objMsg.From = "user@e..."

objMsg.To = "user2@e..."

objMsg.Subject = "HTML Mail"

objMsg.Body =  MessageBody

objMsg.Send



Set objMsg = Nothing



%>





If you want more info, e-mail me again

Nathaniel Foster

Message #4 by Pappas Nikos <pappas@c...> on Sat, 23 Jun 2001 01:00:48 +0300
Than k you all for your replies

problem is solved.

Best regards

Nikos




  Return to Index