473,503 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDO error 8004020f (but mail was sent)

2 New Member
first , my english is bad~~~I'm sorry!
I got some problem.
Expand|Select|Wrap|Line Numbers
  1. Flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") =real ip(remote machine)
  2. Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
  3. Flds("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
  4. Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 
  5. Flds("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 180
  6. Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = "user"
  7. Flds("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "pa"  
  8. Flds.Update
  9. Set MyMail.Configuration = iConf
  10. MyMail.From = "mymail@mymail.com"
  11. MyMail.To = strTo
  12. MyMail.Subject = strSubject
  13. MyMail.HTMLBody = strMailBody
  14. MyMail.Fields.Update()
  15. MyMail.Send()
  16.  
I got some error message .
it shows "8004020f" => MyMail.Send()
The mail was sent , but it still show the error message~
I search in this site .
but I can't solve this problem
so please give me a hand! thanks.
Nov 14 '07 #1
2 2258
jhardman
3,406 Recognized Expert Specialist
My first thought is "count your blessings" which means "If it works, don't com[plain too hard". Put a "on error move next" line at the beginning, and try to display the error at the end in some way that lets site visitors know that the error is under control, or don't show it at all. Let me know if htis helps.

Jared
Nov 16 '07 #2
candywang
2 New Member
Dear Jared
thanks for your advice.
I will try it. thank you.
Nov 19 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
40873
by: alex | last post by:
Hi, Does anybody have an idea why is this happening. The following code works great on my development machine (windows 2000 pro), but on the test server (Windows 2000 Server) it can only send...
5
3253
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...
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...
1
4466
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....
0
1478
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 =...
2
6537
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...
1
2431
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...
0
3432
by: Larry D | last post by:
I have a client with a site that users can register at, we collect their emails, if they have one, in an Access db. I have a page that uses CDOSYS to send messages to those emails but I am getting...
7
5574
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...
0
7202
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,...
0
7086
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...
0
7280
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,...
1
6991
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...
0
7462
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...
1
5014
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...
0
3167
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
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 ...

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.