469,282 Members | 2,320 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

just error 8004020f

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 = "ge***@server.com"
cdoMessage.Bcc = contactos
cdoMessage.Subject = "server " & news_activo

cdoMessage.HtmlBody = html2

cdoMessage.Send
Jul 19 '05 #1
1 2596
http://www.aspfaq.com/2305


"vvv" <v@v.pt> wrote in message
news:3f**********************@news.telepac.pt...
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 = "ge***@server.com"
cdoMessage.Bcc = contactos
cdoMessage.Subject = "server " & news_activo

cdoMessage.HtmlBody = html2

cdoMessage.Send

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Luis andyza | last post: by
reply views Thread by gariboldo | last post: by
2 posts views Thread by Mario Michela | last post: by
1 post views Thread by Vijay | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.