473,840 Members | 1,415 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

email can not send (error '8004020f')

18 New Member
I will try my best to send email(abc@nhatr anglive,support @nhatranglive), but i can not sent it
i will try again another email address(phuc258 3@gmail,phuc258 3@yahoo.com), so it sent well,
This is my code to write to send email:
Senderfirstname =Request.Form(" firstname")
SenderlastName= Request.Form("l astname")
SenderEmail=Req uest.Form("emai l")
SenderPhone=Req uest.Form("phon e")
Sendercbxsubjec t=Request.Form( "cbxsubject ")
Sendertxtsubjec t=Request.Form( "txtsubject ")
Sendernote=Requ est.Form("note" )

MailTo = "abc@nhatrangli ve.com,support@ nhatranglive.co m"
Information = "Informatio n about guest - "
show= "Informatio n about guest" & VbCrLf & VbCrLf
show= show& "1. Information about guest:" & VbCrLf
show= show& "First: " & Senderfirstname & VbCrLf
show= show& "Last Name: " & SenderlastName & VbCrLf
show= show& "Email: " & SenderEmail & VbCrLf
show= show& "Phone: " & SenderPhone & VbCrLf
show= show& "Subject: " & Sendercbxsubjec t & VbCrLf
show= show& "Subject Name: " & Sendertxtsubjec t & VbCrLf
show= show& "2. comment:" & VbCrLf
show= show& "Comment: " & Sendernote & VbCrLf
DIM oMail, Flds, oMailConfig
Set oMail = Server.CreateOb ject("CDO.Messa ge")
Set oMailConfig = CreateObject("C DO.Configuratio n")
oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserver") = "localhost"
oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = 25
oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2
oMailConfig.Fie lds("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout") = 60
oMailConfig.Fie lds.Update
Set oMail.Configura tion = oMailConfig
oMail.From = SenderEmail
oMail.To = MailTo

oMail.Subject= Information
oMail.TextBody = show
oMail.Send
Set oMail = Nothing
Set oMailConfig = Nothing


please help me to do that
Mar 1 '08 #1
1 2095
idsanjeev
241 New Member
Hi friends
Which means that the e-mail was rejected by the server for some reason. Here are some things you can try to alleviate the problem
(error '8004020f')
Mar 1 '08 #2

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

Similar topics

6
15594
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'
5
2642
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it depending on member expiration dates. When the form is submitted, the code loops through the form contents and sends an email to those members that meet the selected criteria. All this worked perfectly when I was sending text emails, but since I
2
1966
by: Andrew | last post by:
I have a windows 2000 sv, with exchange 2000 running with IIS as well. I am tring to send an email with an attachment with CDO. Set cdoConfig = CreateObject("CDO.Configuration") with cdoConfig.Fields .Item(sch & "sendusing") = 2 ' cdoSendUsingPort .Item(sch & "smtpserver") = "spiternet.com" .update End With
5
15938
by: paii, Ron | last post by:
How do I setup a email with attachment for preview but require the user to push the SEND button in Outlook. I have the following function but it sends the email without the sender ever seeing it. Public Function PrintPDFemail2() ' This will create the PDF if the report is setup for it DoCmd.OpenReport "rptJobItemStat", acViewNormal
3
4563
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a windows application it worked fine, however I need to use a service as I don't want to rely on a user being logged in. The errors I get are: Index #:System.Web.HttpException: Could not access 'CDO.Message' object. --->...
4
4264
by: Tony M | last post by:
VS 2005 - XP media - VB .net - winforms - .net 2.0 Just trying to send an email, here is the code and the error message that I get. I can't figure out how to fix it?
1
2456
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
2027
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' /WA_Universal_Email/CDOSYS_JS.asp, line 146 The Contact Us form email was working as of December 14, 2007. The client...
4
3483
by: zufie | last post by:
I have a main form containing a command SEND button that prompts an email form to pop up. The email address(es) that are supposed to appear on the email form are those corresponding to the respective agency record appearing on the main form at the current time. Instead, what I get is the email form without the appropriate information in the textboxes of the email form.
0
9698
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10916
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10299
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9436
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7836
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5872
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4495
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
2
4071
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3136
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 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.