Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 621
  • Last Modified:

CDONTS - HTML email format

Hi There, i am trying to send an HTML Email, but i get an error, see below.

This is a multi-part message in MIME format.

--CS_MAIL_Part_Boundary_10301998--

Please let me know what i am doing wrong. I am using ASP (vbscript)

The code i have is as follows:
HTML = "<html>" & vbCrLF
HTML = HTML & "<body>" & vbCrLf
HTML = HTML & "Hello " & a & "<br><br>" & vbCrLf
HTML = HTML & "Username: " & c & vbCrLf 
HTML = HTML & "password " & b & vbCrLf
HTML = HTML & "</body>" & vbCrLf
HTML = HTML & "</html>" & vbCrLf
 
 
Set objMail = Server.CreateObject( "CDONTS.NewMail" )
objMail.To = Request.form("email")
objMail.From = "example.com <name@example.com>"
objMail.Subject = "Admin account created for " & a
objMail.HTMLBody = HTML
objMail.Mailformat = 0 
objMail.Bodyformat = 0 
 
objMail.Host = "mailout.one.com"
objMail.Send
Set objMail = Nothing

Open in new window

0
Fezi
Asked:
Fezi
  • 5
  • 4
3 Solutions
 
Jammer59Commented:
First off, CDONTS is very old technology and is not supported on the newer operating systems (windows 2000, xp, vista).  CDOSYS is the replacement.
 
objMail.HTMLBody = HTML
should be
objMail.Body = HTML
0
 
FeziAuthor Commented:
This does not work...
0
 
Wayne BarronCommented:
What other Mail components does your hosting company offer?
I use to use JMail (But the hosting company does not support it, so no testing in that no more)
ASPMail, ASPJMail
Them 2 I might be able to assist you with.
Just let me know.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
FeziAuthor Commented:
all i knw is that they have CDONTS and they have an apache chilisoft server. my hosting company is one.com .. I was thinking to use JMail, but don't exactly want to use any outside components, trying to build everything hardcoded.

So.. is there anything that we can do with this then?
0
 
Wayne BarronCommented:
Contact thier support line, and ask them what
Email components that they allow?
ASPMail
ASPQMail
Jmail
exc.....
0
 
FeziAuthor Commented:
It works.. wooo

see below code..
HTML = "<html>" & vbCrLF
HTML = HTML & "<body>" & vbCrLf
HTML = HTML & "<table bordercolor='#333333' border='1' align='center' width='500px' cellpadding='8' cellspacing='0' style='font-family:verdana;font-size:11px;'>" & vbCrLf
HTML = HTML & "<tr><td align='center'>" & vbCrLf
HTML = HTML & "<p align='left'><br><br>Dear " & a & vbCrLf
HTML = HTML & "<br><br><br>"
HTML = HTML & "<b>Username: " & c & "</b>" & vbCrLf
HTML = HTML & "<br><br>" & vbCrLf
HTML = HTML & "<b>Password: " & b & "</b>" & vbCrLf
HTML = HTML & "<br><br>URL will be delivered by word of mouth" & vbCrLf
HTML = HTML & "<br><br>Please keep your details out of sight and help protect your account." & vbCrLf
HTML = HTML & "<br><br><br><br>" & vbCrLf
HTML = HTML & "</p></td></tr></table>" & vbCrLf
HTML = HTML & "</body>" & vbCrLf
HTML = HTML & "</html>" & vbCrLf
 
 
 
Set objMail = Server.CreateObject( "CDONTS.NewMail" )
objMail.To = Request.form("email")
objMail.From = "example from
objMail.Subject = "Admin account created for " & a
objMail.Body = HTML
objMail.Mailformat = 0 
objMail.Bodyformat = 0 
objMail.Value("Content-Transfer-Encoding") = "8bit" 
objMail.Host = "host"
objMail.Send
Set objMail = Nothing

Open in new window

0
 
FeziAuthor Commented:
i will still award points for the help and time. :)
0
 
Wayne BarronCommented:
Good going!!!!
that is the way to tackle it.
But you might want to consider one of the new components in the future
For more robust solutions.
Like myself.
I am getting ready to learn ASPMail (or) ASPQMail whick ever one gives me the best results
For what I need.

Have a good one.
0
 
FeziAuthor Commented:
Hi there, ASPMail is pretty good, JMail is not too bad, my hosting company (one.com) don't allow their customers to install any components.

Most likely get my own server as it is benefitical in many ways. (thinking about it)
0
 
Wayne BarronCommented:
Yes on the getting your own server.
The Server itself is not going to cost a lot of money, About $1,000.00-$5,000.00 depending on
What type of setup that you are going for.
And can cost much more.

The big one is going to be getting a dedicated line for Internet brought in for it.
Not unless you are in an area where they already have "Fiber to the Curb"
If you are amoung them lucky ones, then you are already set..

have a good one Fezi
Carrzkiss
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now