Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDONTS Email

Status
Not open for further replies.

zzfive03

Programmer
Jun 11, 2001
267
I am trying to send an email via the CDONTS object.

I want to send my text to be HTML, like with colors, and images, and URL's. The way I am working now, everything is sent as text. How can this be changed?

Thank you in advance.
 
You will find your answers in this article:


I have worked with CDONTS and you will find that many ISP's refuse to register this object on their web servers because of security issues. If you are planning to host your asp code on an external isp, i would ask them if they allow this object to be used.

If they don't, they may support other alternatives such as Front Page extensions.

Brett Birkett B.Comp
Systems Analyst
 
Hi there,

try this code
I will get an e-mail from you in the email BCC :)

Code:
    message =&quot;<html><body>Hi there,<a href='[URL unfurl="true"]http://www25.brinkster.com/salibas'>Click[/URL] here</a></body></html>&quot;
    set objMail = CreateObject(&quot;CDONTS.NewMail&quot;)
    objMail.To = &quot;to-email@domain.com&quot;
    objMail.Bcc = &quot;samer@proactiveme.com&quot;
    objMail.bodyformat = cdoBodyFormatHTML
    objMail.MailFormat = cdoMailFormatMIME
    objMail.From = &quot;From name <email@domain.com>&quot;
    objMail.subject = &quot;Subject&quot;
    objMail.Body = message
    objMail.Send
    Set objMail = nothing

Salibas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top