473,560 Members | 2,965 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

just error 8004020f

vvv
What's the meaning of this error?

My code:

myMailServer = "mail.telepac.p t"

sch = "http://schemas.microso ft.com/cdo/configuration/"
Set cdoConfig = Server.CreateOb ject("CDO.Confi guration")
cdoConfig.Field s.Item(sch & "sendusing" ) = 2
cdoConfig.Field s.Item(sch & "smtpserver ") = myMailServer
cdoConfig.field s.update

Set cdoMessage = Server.CreateOb ject("CDO.Messa ge")
Set cdoMessage.Conf iguration = cdoConfig

Dim iBp
Set iBp = cdoMessage.Body Part

With iBp
.ContentMediaTy pe = "text/html"
.ContentTransfe rEncoding = "quoted-printable"
Set Stm = .GetDecodedCont entStream
Stm.Flush
End With

html2="some text"
contactos=mid(c ontactos,1,len( contactos)-1)

cdoMessage.From = "ge***@server.c om"
cdoMessage.Bcc = contactos
cdoMessage.Subj ect = "server " & news_activo

cdoMessage.Html Body = html2

cdoMessage.Send
Jul 19 '05 #1
1 2698
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.p t"

sch = "http://schemas.microso ft.com/cdo/configuration/"
Set cdoConfig = Server.CreateOb ject("CDO.Confi guration")
cdoConfig.Field s.Item(sch & "sendusing" ) = 2
cdoConfig.Field s.Item(sch & "smtpserver ") = myMailServer
cdoConfig.field s.update

Set cdoMessage = Server.CreateOb ject("CDO.Messa ge")
Set cdoMessage.Conf iguration = cdoConfig

Dim iBp
Set iBp = cdoMessage.Body Part

With iBp
.ContentMediaTy pe = "text/html"
.ContentTransfe rEncoding = "quoted-printable"
Set Stm = .GetDecodedCont entStream
Stm.Flush
End With

html2="some text"
contactos=mid(c ontactos,1,len( contactos)-1)

cdoMessage.From = "ge***@server.c om"
cdoMessage.Bcc = contactos
cdoMessage.Subj ect = "server " & news_activo

cdoMessage.Html Body = html2

cdoMessage.Send

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3255
by: Paco | last post by:
I'm having a problem with an ASP page I've made and was hoping someone out there can help. My page sends an email using CDO to a username pulled from a database as follows: With cdoMessage Set .Configuration = cdoConfig .From = "Admin <admin@MyCompany.com>" .To = rs("USERName") & "@MyCompany.com"
6
15576
by: Owen | last post by:
Hi, can somebody help me please... I'm trying to set up a very simple asp page that sends me an email when it runs. This is just to try and get CDOSYS working so I can send out emails from my website. Everything is fine right up until I execute the ".Send" method. What could be wrong? What does the error mean? The output from the...
1
4486
by: Luis andyza | last post by:
I use CDO.Message to send e-mail from an asp page (similar to the method at http://www.aspfaq.com/show.asp?id=2305). One of my testers entered an invalid e-mail address and got an 8004020F error. Is there a way to trap this error so that I can display a better error message to the user and prevent the page from crashing?
0
1498
by: gariboldo | last post by:
Have all a nice day, I have the following problem: I have in my site a page ASP that contains a form and i'm trying to send it to an email address with the following script: Set cdoConfig = CreateObject("CDO.Configuration") With cdoConfig.Fields .Item(cdoSendUsingMethod) = cdoSendUsingPort .Item(cdoSMTPServer) = "mail.server"
2
6542
by: Mario Michela | last post by:
i've been working for 4 days trying to accomplish something that should take 20 minutes.. I have an asp page that take user info, ie name, address phone, email. it sends a copy to email addres A and sends a reciept to site visitor. i have it working on 1 SBS 2003, but i get Error 8004020f on a second client's machine.. i'm using cdo,...
1
2441
by: Vijay | last post by:
Hi, I have a problem to send Mail in ASP. I am using CDO for sending mail. My Server configuration are : Windows Server 2003 Stadndard Edition with R2, Service Pack 2, Microsoft Management Console(MMC) 3.0, Internet Information Service(IIS) 6.0 My ASP Code to send mail are as follows :
2
2263
by: candywang | last post by:
first , my english is bad~~~I'm sorry! I got some problem. Flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") =real ip(remote machine) Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 Flds("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25...
2
2011
by: gduggan | last post by:
I hope someone can help me solve this problem. I have a client who is hosting their website on an Exchange server running Windows Server 2003 OS. They are currently unable to receive email from clients through the "Contact Us" form and their client gets the following error message in the browser: error '8004020f' ...
7
5588
by: ayush patel | last post by:
Hi everyone, I am writing ASP code to send email using SMTP.I am getting error '8004020f' at .Send. this seems to be a common error. my SMTP server relays to anonymous email addresses.there is no firewall or proxy set up that can stop these mails to be sent. Infact i have seen the SMTP LOG FILE and (i dont know exactly what it says)i...
0
7631
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7840
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8063
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7916
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5458
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5175
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3584
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1168
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.