Cdo Message Error 8004020e
Contents |
here for a quick overview of the site Help Center Detailed answers to any cdo.message.1 error '80040222' questions you might have Meta Discuss the workings and policies of
Error '80040213'
this site About Us Learn more about Stack Overflow the company Business Learn more about hiring
Run Time Error 8004020f
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is
Error '80040211'
a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up CDOSYS error '8004020e' sending to Yahoo up vote 0 down vote favorite I am using CDOSYS for our asp classic mail. OK, test mail with my yahoo account, and it sends the pickup directory path is required and was not specified. out perfectly. However, I use my clients email and password, and it gives an error '8004020e'. I cannot figure out why it would be doing it. My client even had their password changed just to make sure that there was not a problem with the login information. I will go back and use my yahoo email and password, and once again, it WORKS. Just not with theirs. Any idea's why it will work for one account but not for the other account? Code below: myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network). myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") =MailServer myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465 myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = true 'Use SSL for the connection (True or False) myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 ' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password. myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = emailAdd myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = pass my
help? Post your asp send email question and get tips & solutions from a community of 418,436 IT Pros & Developers. It's quick & easy. error '8004020e' while sending mail P: 1 pranavverma Hi, I am http://stackoverflow.com/questions/34423557/cdosys-error-8004020e-sending-to-yahoo trying to send a mail thru my web page. the code is as below: - Expand|Select|Wrap|Line Numbers SetobjEmail=CreateObject("CDO.Message") objEmail.From="myID@gmail.com" objEmail.To="myID@gmail.com" objEmail.Subject="Newusernotificationfor"&username objEmail.Textbody=hkm objEmail.Configuration.Fields.Item_ ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 objEmail.Configuration.Fields.Item_ ("http://schemas.microsoft.com/cdo/configuration/smtpserver")=_ "smtp.gmail.com" objEmail.Configuration.Fields.Item_ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=465 'YourUserIDontheSMTPserver objEmail.Configuration.Fields.Item_ ("http://schemas.microsoft.com/cdo/configuration/sendusername")="myID@gmail.com" 'YourpasswordontheSMTPserver objEmail.Configuration.Fields.Item_ ("http://schemas.microsoft.com/cdo/configuration/sendpassword")="myPass" https://bytes.com/topic/asp-classic/answers/698928-error-8004020e-while-sending-mail 'UseSSLfortheconnection(FalseorTrue) objEmail.Configuration.Fields.Item_ ("http://schemas.microsoft.com/cdo/configuration/smtpusessl")=True objEmail.Configuration.Fields.Update objEmail.Send this thing executes to give me error '8004020e' on the objEmail.Send line. Please help me with what is wrong in this. Aug 26 '07 #1 Post Reply Share this Question 1 Reply P: 21 bakpao It seems to me it tries to connect to the mail server but it has authentication problem. If you are absolutely certain you are connected, make sure the from and to addresses are valid. Aug 27 '07 #2 reply Message Cancel Changes Post your reply Join Now >> Sign in to post your reply or Sign up for a free account. Similar topics Error in Sending Mail Server
Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help https://www.experts-exchange.com/questions/26296660/Asp-error-when-sending-email-error-'8004020e'.html Ask a Question Ask for Help Receive Real-Time Help http://www.dbforums.com/showthread.php?1655279-Error-while-sending-mail-using-CDO-configuration-and-Message Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions cdo message > Asp error when sending email error '8004020e' Want to Advertise Here? Solved Asp error when sending email error '8004020e' Posted on 2010-06-30 ASP 3 Verified Solutions 5 Comments 3,018 Views Last Modified: 2012-06-27 Hello, I am getting error '8004020e' when i try to send an email using cdo message error this classic asp code, what is wrong? My hosting is done through godaddy.com. I get an error on the .Send line. Dim ContactName, Email, Message, sch Dim OBJ_EMAIL ContactName = Request.Form("op1") Email = Request.Form("op2") Message = Request.Form("op3") sch = "http://schemas.microsoft.com/cdo/configuration/" Set cdoConfig = CreateObject("CDO.Configuration") With cdoConfig.Fields .Item(sch & "sendusing") = 2 .Item(sch & "smtpserver") = "relay-hosting.secureserver.net" .update End With Set cdoMessage = CreateObject("CDO.Message") With cdoMessage Set .Configuration = cdoConfig .From = ContactName &"<"& Email &">" .To = "contact@email.com" .Subject = "Contact Us" .HTMLBody = "" & Message & "" .Send End With Set cdoMessage = Nothing <
Message If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 2 of 2 Thread: Error while sending mail using CDO configuration and Message Tweet Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 04-07-10,06:48 #1 Ashishu View Profile View Forum Posts Registered User Join Date Apr 2010 Posts 1 Unanswered: Error while sending mail using CDO configuration and Message Hi All, I have written a code for sending mail to the users of the same domain, where my site is hosted. The code is working fine with my local IIS server but when I deployed my site to host server, then it creates problem. below are my code Const sch = "http://schemas.microsoft.com/cdo/configuration/" Set cdoConfig = CreateObject("CDO.Configuration") With cdoConfig.Fields .Item(sch & "sendusing") = 2 ' cdoSendUsingPort* .Item(sch & "smtpserver") = "smtp.example.com" .Item(sch & "smtpserverport") = 25 .Item(sch & "smtpauthenticate") = 1 .Item(sch & "sendusername") = "xxx.xxxxx" 'I have also used like "xx.xxxxx@example.com" .Item(sch & "sendpassword") = "xxxx" ' This is the password I given for this user .Item(sch & "smtpconnectiontimeout") = 60 .Update End With Set cdoMessage = CreateObject("CDO.Message") With cdoMessage Set .Configuration = cdoConfig .From = "xx.xxxxx@example.com" .To = "yy.yyyyy@example.com" .Subject = strSub .TextBody = "Test Mail" .AddAttachment "c:\a.txt" .Send End With Set cdoMessage = Nothing Set cdoConfig = Nothing Problem that I am facing with the above code:: #1. If I use the exactly the same code then it gives me the following error :: error '80040211' /workingHere/career_thanks.asp, line 180 which is basically at .Send method. #2. Now if I remove/comment out the following code from the above written code .Item(sch & "smtpauthenticate") = 1 .Item(sch & "sendusername") = "xxx.xxxxx" 'I have also used like "xx.xxxxx@example.com" .Item(sch & "sendpassword") = "xxxx" ' This is the password I given for this user it gives the error error :: error '8004020e' /workingHere/career_thanks.asp, line 177 which is also at same place .Send method. #3. Now if I change the smtpserver as localhost then it does not gives any error but the user does not receive the mail. #4. If I change the smtpserver as Localhost and change the value of .To field as ccccc@gmail.co