473,545 Members | 721 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 2695
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
3254
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
15575
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
4482
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
1489
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
6539
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
2434
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
2260
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
2010
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
5583
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
7398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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
7805
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...
1
7416
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5969
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5325
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
4944
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
3449
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1878
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.