473,695 Members | 2,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error '8004020f' SMTP Log

63 New Member
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 think it is sending the mail.see below

this is my SMTP LOG FILE., aaaaaa, 9/9/2008, 15:50:36, SMTPSVC1, AAA-AAA,, 0, 15, 57, 259, 0, HELO, -, aaaaaa,, aaaaaa, 9/9/2008, 15:50:36, SMTPSVC1, AAA-AAA,, 0, 18, 57, 254, 0, MAIL, -, FROM: <gggg@gmail.com >,, aaaaaa, 9/9/2008, 15:50:36, SMTPSVC1, AAA-AAA,, 0, 97, 56, 289, 0, RCPT, -, TO: <cem@dfr.com>

but still i can see error '8004020f' message on the screen.

can someone tell me looking at the log file if mails are being sent and what might be the reason for the error to occur.

Sep 9 '08 #1
7 5615
ayush patel
63 New Member
Ok. I think some of the email addresses out of bunch are getting rejected.

how can i make smtp to ignore these email addresses?

Sep 10 '08 #2
ayush patel
63 New Member
How can I make smtp server ignore invalid email addresses. I am sending emails to a number of people at a time. one or two are bound to be fake addresses. how can I make SMTP server run anyway without showing error message on screen.

Sep 10 '08 #3
533 Recognized Expert Contributor
Hi there,

Use a Try...Catch block to send the emails.

Sep 10 '08 #4
ayush patel
63 New Member
I used try catch block and it has done the job but there is a new problem now.

another error says server rejected one or more emial addresses because there are too many recipients. what can be done for this.

Sep 11 '08 #5
ayush patel
63 New Member
I have posted another message for the same problem.
Sep 11 '08 #6
979 Recognized Expert Contributor
I have posted another message for the same problem.
I've merged these threads for you Ayush.

Dr B
Sep 11 '08 #7
ayush patel
63 New Member
Thanks for that Dr.B

Hey guys I have got the solution. I just increased the "Limit number of recipients" to whatever limit I wanted.this option is found under SMTP properties in messages tab.

Din't realise the solution was so simple.

Sep 11 '08 #8

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

Similar topics

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 emails to addresses on our domain. If I specify other address I just get a 8004020f error message. The smtp server I'm trying to send is on a separate machine (Windows NT Server). I think it has something to do with web server configuration, or even...
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"
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 source below is: "test1 error '8004020f'
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?
by: dmalhotr2001 | last post by:
Hi, I'm using windows 2003 with asp. However I'm having problems sending email using the cdosys object. My code is below and I don't believe its the code but on the send command. <% dim sch
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, sendusing = 2 (smtp via network). i've tried both using and not using authentication w/ username and...
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 :
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 "error '8004020f" when I do this. About 75% of the members have emails so some email fields in the db are empty. One issue with my webhost is that I cannot send by CDOSYS more than 99 emails at a time, so I select all emails where the ID is less...
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 Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 ...
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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 most users, this new feature is actually very convenient. If you want to control the update process,...
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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: 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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.