just error 8004020f

V

vvv

What's the meaning of this error?



My code:

myMailServer = "mail.telepac.pt"

sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(sch & "sendusing") = 2
cdoConfig.Fields.Item(sch & "smtpserver") = myMailServer
cdoConfig.fields.update

Set cdoMessage = Server.CreateObject("CDO.Message")
Set cdoMessage.Configuration = cdoConfig

Dim iBp
Set iBp = cdoMessage.BodyPart

With iBp
.ContentMediaType = "text/html"
.ContentTransferEncoding = "quoted-printable"
Set Stm = .GetDecodedContentStream
Stm.Flush
End With

html2="some text"


contactos=mid(contactos,1,len(contactos)-1)

cdoMessage.From = "(e-mail address removed)"
cdoMessage.Bcc = contactos
cdoMessage.Subject = "server " & news_activo

cdoMessage.HtmlBody = html2

cdoMessage.Send
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top