Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CDONTS Q


Message #1 by "CebuCity Undernet Chatters Community" <gsalvador@v...> on Sat, 03 Feb 2001 16:14:22 -0800
Hi guys,





i wanted to send the info in an HTML format. But it doesnt work. here's t

he fragment of the code:







html =3D "<HTML>"

html =3D html & "<HEAD></HEAD>"

html =3D html & "<BODY>"

html =3D html & "<FONT color=3D#000000 size=3D2>"

html =3D html & "Services Checked:" &  "<BR>" &  "<BR>" & strServices & "

<BR>" & "<BR>"

html =3D html & "Personal Information:" & "<BR>" & "<BR>" 

html =3D html & "Name: " & Request.Form("Name")  & "<BR>" 

html =3D html & "Company: " & strCompany & "<BR>" 

html =3D html & "Email: " & strEmail & "<BR>" 

html =3D html & "Phone: " & strPhone & "<BR>" 

html =3D html & "Address 1: " & strAdd1 & "<BR>" 

html =3D html & "Address 2: " & strAdd2 & "<BR>" 

html =3D html & "URL: " & strURL & "<BR>" 

html =3D html & "Hear From: " & strHear & "<BR>" 

html =3D html & "Message: " & strMessage & "<BR>" 

html =3D html & "</FONT>"

html =3D html & "</BODY>"

html =3D html & "</html>"





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



objMsg.Mailformat =3D CdoBodyFormatHTML

objMsg.From =3D strFrom

objMsg.To =3D strTo

objMsg.Subject =3D strSubject

objMsg.Body =3D html



objMsg.Send







any help very much appreciated



g









_________________________________________________________________________

__

Visit http://www.visto.com/info, your free web-based communications cente

r.

Visto.com. Life on the Dot.




  Return to Index