On Sun, 27 Jul 2003 20:06:04 -0700, "Paul Turley"
<pa**@createsolutions.net> wrote:
I can't get the SmtpMail object to work on our ISP's production server so
I'm stuck with using CDONTS in an ASP page. My code looks like this:
Set msg = CreateObject("CDONTS.NewMail")
msg.From = ...
...
msg.BodyFormat = 0 '-- This is the value of cdoBodyFormatHTML
msg.Body = ...
msg.Send()
<If there is a more appropriate group to post this to, please let me know.
I can't find a group for CDO>
Does your ISP support ASP.NET? Is the web page in question a ASP page
or a ASP.NET page. If ASP.NET, mail functions are exposed via a
different method than CDONTS or CDO.
I suspect you are using ASP not ASP.NET? If so, and if your ISP uses
Win2k or better, use CDO via ASP, not CDONTS. If you want to use CDO
as I suggest, check out the MSDN library URL:
http://msdn.microsoft.com/library/de...asp?frame=true
For a short answer, if I recall correctly CDONTS will send the message
as HTML if you load up the property
msg.HTMLText=strText ' the var that holds your HTML
instead of
msg.Text=strText
Dan Bush
me@REMOVE.danbush.com