UTL_SMTP and SMTP-Error: 530 Authentication required

Hi,
I wanna use the utl_smtp-package and while testing the example of the 9i-documentation, I got the error:
ORA-29279: Permanent SMTP-Error: 530 Authentication required
The only help I found was the sentence in the docu:
530: Must issue a STARTTLS command first. Encryption required for requested authentication mechanism.
What does it mean and how can I avoid this error?
It's true, that my smtp-account of my provider needs an authentication (pop3 before smtp!)
Thanx a lot!
Wolfgang

Hey, Community Girl!  I just spent 2 days ripping my hair out over this same issue...  The answer was maddeningly simple/stupid.  In Outlook...  they ASK for your "user name" and "Password" (on the More Settings Tab).  What they
actually WANT is your "email address" NOT your "user name", followed by your password.  This is easy.. I hope it works the same for you.
In Outlook, go to Tools, Email Accounts, View or Change, click Next.  Highlight account information and click change.  In the lower right of the page... Click More Settings.
Click the Outgoing Server Tab.
Check the My outgoing server SMTP requires authorization.
Check Log on Using:
User Name:  Do NOT type your user name here... type your email address!
Password:  Type in your password.
Check the Remember password box.  OK
That one small change FIXED 2 days of hair pulling on my part... I hope that does it for you too.
Let me know...  I'd be interested if you fixed it.  Wish they had actually asked for what they wanted... User Name or Email Address ARE two different things!  Good luck!
South Texan, you're a genius!  This 530 Authentication error has plagued me for 3 years now; when I call my internet service, they say it's a router firewall issue; when I call them, they say it's not their issue.  Changing the User Name field to
my email address instead of my user account name worked!!!!! Thank you!!

Similar Messages

  • Outlook cannot send e-mail. Error: 530 Authentication Required

    Hello everyone,
    I'm new at this so I'm confused.  E-mails are sitting in my out box but I'm not getting any error messages.  When i trouble shoot e-mail settings, I get this error message: "Cannot send the message.  530 Authentication Required."   I would appreciate any and all help.

    Hey, Community Girl!  I just spent 2 days ripping my hair out over this same issue...  The answer was maddeningly simple/stupid.  In Outlook...  they ASK for your "user name" and "Password" (on the More Settings Tab).  What they
    actually WANT is your "email address" NOT your "user name", followed by your password.  This is easy.. I hope it works the same for you.
    In Outlook, go to Tools, Email Accounts, View or Change, click Next.  Highlight account information and click change.  In the lower right of the page... Click More Settings.
    Click the Outgoing Server Tab.
    Check the My outgoing server SMTP requires authorization.
    Check Log on Using:
    User Name:  Do NOT type your user name here... type your email address!
    Password:  Type in your password.
    Check the Remember password box.  OK
    That one small change FIXED 2 days of hair pulling on my part... I hope that does it for you too.
    Let me know...  I'd be interested if you fixed it.  Wish they had actually asked for what they wanted... User Name or Email Address ARE two different things!  Good luck!
    South Texan, you're a genius!  This 530 Authentication error has plagued me for 3 years now; when I call my internet service, they say it's a router firewall issue; when I call them, they say it's not their issue.  Changing the User Name field to
    my email address instead of my user account name worked!!!!! Thank you!!

  • Mailer object error message "SMTP: invalid from address. SMTP error 530 5.7.0 Must issue a STARTTLS command first. d5sm35857280yhl.19".

    I am trying to send an email from Lookout V6.6 using the Mailer object.  I have an email address setup through GMAIL and have verified it works.  Also, Lookout Mailer object is able to verify GMAIL server.  I get the following error message when trying to send the email: "SMTP: invalid from address. SMTP error 530 5.7.0 Must issue a STARTTLS command first. d5sm35857280yhl.19".  Anyone know what is causing this?

    Another method is to use a SMTP relayer, we have deployed them in the past.
    http://www.hmailserver.com/index.php?page=welcome
    Mike
    Forshock - Consult.Develop.Solve.

  • 530 authentication required, when send report as email thru Discoverer View

    Hi,
    I got the "530 authentication required" error message when I tried to use the "Send as Email" function to attach a report in the Discoverer Viewer.
    Could anyone shade some light on this error?
    Thanks
    Kevin C

    Hi,
    You need to talk with your "system", it seems like you got to a closed port.
    Also it may be that a firewall is blocking you.
    Tamir

  • When I try to send an email message I get smtp error(535) Authentication failed

    I use the email from Stevens Inst. of Tech. I can receive messages,but when I try to send one I get the message: SMTP Error (535) Authentication failed. When I try the same thing in Chrome, I have no problem.

    Contact your e-mail provider.
    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache and
    * Remove Cookies<br> '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
    Type '''about:preferences'''<Enter> in the address bar.
    * '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
    * '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
    If there is still a problem,
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.
    I looked up the error on a search engine.
    http://www.bing.com/search?q=SMTP%20Error%20%28535%29
    Check that you are using the correct user / password.

  • I changed nothing in my email account but can no longer send emails on my talktalk account and get the message, "authentication required." I am running Mavericks on my MacBook Pro. I can receive messages on talktalk. Can send

    I changed nothing in my email account, talktalk.net, but can no longer send (server's response, "authentication required) No problem receiving, I am using Mavericks on my MacBookPro. No problem using Cloud, but I want to use my talktalk account as before the problem
    I can send and receive using talktalk without any problems using my iPod and iPad.
    I would be most grateful for help - in simple form, please, I am an 80 plus female Mac lover!

    Hello Hazel139,
    I found this in one of the similar post hope it helps you.
           Level 6 (14,190 points)             
    X423424X 
    This helped meRe: Problem SENDING email     Jun 17, 2012 1:40 PM    (in response to Casanewton) 
    The error I see is you did not specify the proper authentication for the smtp server.
    In the Mail preferences for the account, smtp popup, select Edit SMTP Server List.  A sheet will drop down.  Select Advanced tab on that sheet.  You should, I assume, set the Authentication to password, and set the proper username and password.  That's where the poper would be set if 587 is not the one you should be using.  Maybe it is.  I only bring it up since I see it trying to use port 587.
    If you got this stuff already set correctly then I don't know.  Mail has a problem in your setup.  Maybe delete the account and recreate it from scratch.
    https://discussions.apple.com/message/18670442#18670442

  • TMG request for authentication dropped/ignored by OSx10.9.4 forcing web page error 407 Authentication Required

    Environment
    Integrated authentication web access with Windows infrastructure. TMG is the network proxy solution.
    Device
    Computer used is a MacBook Pro running OSx 10.9.4 with latest safari updates
    Problem
    MacBook Pro devices experience continued random 407 Authentication Required errors. Replicated across 6 different Apple computers that access the network.
    Troubleshooting
    Tried multiple network configs (Auto, Config file, Proxy address) with no resolution but same results. Removing all passwords from Keychain and also have network passwords in Keychain make little difference.
    Wireshark analysis reveals MacBook Pro is handling .wpad/.pac files successfully but fails to respond to TMG authentication request. In the logs it appears the MacBook ignores the request for username/password.
    Notes
    By refreshing a failed page the website will load correctly 9/10 after random dropout has happened
    iPad connections work seamlessly as long as end user inputs username/password when prompted.

    Hi Juan
    That does seem like JMS authentication issues, I have had the same in the past, especially when upgrading or copying content between environments. The RequestCenter and ServiceLink configuration is stored in the following files:
    \WEB-INF\classes\config\rcjms.properties
    \WEB-INF\classes\config\integrationserver.properties
    The JBoss username and password are stored in the application-users.properties under \standalone\configuration or \[RequestCenterServer/ServiceLinkeService]\standalone\configuration
    depending on your setup, there may be more than one instance of this file depending of if you are running with one JBoss instance or two. The details here are encrypted, to update these configuration files one will have to manually remove all instances of the jmsuser and use the add-user.bat or add-user.sh scripts under \bin to re-create the user, more instructions on this utility can be found in the 9.4.1 (Not R2) installation guides and early as this step was manually done in those versions.

  • Can't send email on yahoo mail, keeps switching to windows mail and smtp errors ?

    When browsing using Firefox if I try and send URL or email it automatically tries to send it on Windows Mail rather then the Yahoo mail I normally use, then windows mail can't send any email out saying smtp error. Can send yahoo mail fine ?

    http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox

  • When trying to connect to my Internet indoors my iPad and iPod says authentication required, what does this mean

    Can someone help my iPad and iPod keep saying authentication required, what do I do can to connect to Internet indoors

    That means the wifi node you are trying to connect to is password protected for an encrypted wifi connection.  You need to know the network password to log on to those wifi networks.
    If this is your own wifi network, then it is the same password you use to connect every other wifi device in the same home.  If you did not set up the network, you need to ask whomever did for the connection password.

  • Webservice Header Issue ( Authentication required )

    Dears I am developing client application to consume webservice, the webservice developer sent me the wsdl file and the sample SOAP request , all look fine for me
    the issue that when I am trying to call the webservice it returns an error message ( Authentication Required ) but I am sending the user name and the password in the header as expected.
    here is the Sample SOAP 
    <soapenv:Envelope xmlns:fax="http://fax.po.ws.apps.oracle.xxdof/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header><wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:UsernameToken wsu:Id="UsernameToken-5A2B82D9EE5888AE0414252886487322"><wsse:Username>weblogic</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">weblogic1</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">jMqFQqEM30Yp+t3tP+8meg==</wsse:Nonce><wsu:Created>2015-03-02T09:30:48.732Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header>
    <soapenv:Body>
    <fax:faxStatus>
    <!--Optional:-->
    <arg0>0</arg0>
    <!--Optional:-->
    <arg1>0</arg1>
    <!--Optional:-->
    <arg2>0</arg2>
    <!--Optional:-->
    <arg3>0</arg3>
    <!--Optional:-->
    <arg4>0</arg4>
    <!--Optional:-->
    <arg5>0</arg5>
    </fax:faxStatus>
    </soapenv:Body>
    </soapenv:Envelope>"
    and below the request I am sending 
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <s:Header>
    <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <o:UsernameToken u:Id="uuid-90e0f212-3dc0-4913-96a8-175697d5240d-1" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <o:Username>username</o:Username>
    <o:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</o:Password>
    <o:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">JY+mppXhcmr+Rl/kzURVoYKFKa4=</o:Nonce>
    <u:Created>2015-03-18T09:43:26.248Z</u:Created>
    </o:UsernameToken>
    </o:Security>
    </s:Header>
    <s:Body>
    <faxStatus xmlns="http://fax.po.ws.apps.oracle.xxdof/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <arg0 xmlns="">0</arg0>
    <arg1 xmlns="">1</arg1>
    <arg2 xmlns="">2</arg2>
    <arg3 xmlns="">3</arg3>
    <arg4 xmlns="">4</arg4>
    <arg5 xmlns="">5</arg5>
    </faxStatus>
    </s:Body>
    </s:Envelope>
    Can you please point me what I am missing here
    thanks
    wasim

    Hi,
    In the Sample SOAP, the username and password are weblogic and
    weblogic1. But the request you are sending are
    username
    and password which are not the authenticated account.
    You need make sure that the username and password you passed are authenticated
    account.

  • Javax.mail.MessagingException: 505 Authentication required

    Could any one provide ,what would be the reasons for the following error information.
    [5/7/07 0:16:21:853 EDT] 11ba7fef SystemOut O DEBUG SMTP RCVD: 505 Authentication required
    [5/7/07 0:16:21:853 EDT] 11ba7fef SystemOut O DEBUG SMTP SENT: QUIT
    [5/7/07 0:16:21:853 EDT] 11ba7fef SystemOut O javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.MessagingException: 505 Authentication required

    it was working until few days.we dont understand what woud be problem.
    There is log informatiuon in websphere systemerr.log also.
    0:102 EDT] 740d8b8d SystemErr R javax.mail.SendFailedException: Sending failed;
    nested exception is:
         javax.mail.MessagingException: 505 Authentication required
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at javax.mail.Transport.send0(Transport.java:219)
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at javax.mail.Transport.send(Transport.java:81)
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.det.core.jenmail.JENMailSender.sendEmail(JENMailSender.java:250)
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.det.core.jenmail.JENMailSender.sendEmail(JENMailSender.java:165)
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.det.jenadmin.registration.ModifyUserAction.process(ModifyUserAction.java:171)
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at org.apache.jsp._PendingAction._jspService(_PendingAction.java:824)
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))
    [5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
    [5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

  • Anyone know how to remove a pesky "Authentication Required" box?

    I visited (shame on me!!) a tasteful but adult-oriented art photo site and by mistake clicked on a content link which required a "member subscription" to view. My system attempted to use iTunes to open the file, and it threw an "Authentication Required" nag box on the screen. The box continues, "To access this site, you need to log in to area 'Members_Only' on _____________.com. Your password will be sent in the clear.", followed by fill-in boxes for the Name and Password.
    Now, I have never gone back to that site, yet almost each time I launch iTunes, I get this box, and I actually have to cancel out of it about 15 times in rapid succession before it will disappear from the screen and let the iTunes application display my music browser. Is there a preference cache file that I can trash to get rid of this, without losing any other valuable settings, like my iTunes online store registration info?

    It sounds like iTunes is still trying to access or download something form that site. Let iTunes finish opening. click cancel on the dialog and check the iTunes library, podcasts and other folders.playlists for the unwanted content. Delete it when you find it.
    Tracy

  • In my iPhone appears a page with "Authentication Required", but I do not know why...

    Someone could explain me why appears when I try to open Safari, App Store, and others.. a Page asking me a Username and password by a Authentication Required? I live in Venezuela, this is my second day with the iPhone, and I only did download games here...
    Please, help.. I try with my Apple ID and did not work...

    Could you explain further what is happening on the screen right before you get prompted by Safari?
    For App Store, Apple asks you to authenticate yourself so that your activity can be synced between your iPhone and computer and so that you can download apps (including games). Other apps ask for you to authenticate for a number of other reasons.
    Are you sure your using the proper username and password combination for the prompt? Especially when first starting to use the keyboard, you might find that typing on the iPhone takes some getting used to. You might think that you're typing the proper password while accidentally mistyping by one character.

  • When trying to print I get error code 30892 and authentication required how do I fix this?

    I am new to my Mac and am having trouble printing.  I keep getting error code -30892 and authentication required and it can't print.  I have sharing features open on both my PC and my Mac.  Any suggestions?

    Doesn't sound like any error number I'm familiar with. What's your set-up? Are you using a print server?

  • The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.

     try
                    MailMessage mail = new MailMessage();
                    SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
                    mail.From = new MailAddress("[email protected]");
                    mail.To.Add("[email protected]");
                    mail.Subject = "Test Mail..!!!!";
                    mail.Body = "mail with attachment";
                    System.Net.Mail.Attachment attachment;
                    attachment = new System.Net.Mail.Attachment(@"C:\Attachment.txt");
                    mail.Attachments.Add(attachment);
                    SmtpServer.Port = 587;
                    SmtpServer.UseDefaultCredentials = true;
                    SmtpServer.Credentials = new System.Net.NetworkCredential("userid", "Password");
                    SmtpServer.EnableSsl = true;
                    SmtpServer.Send(mail);
    Catch(Exception exception)
    When i m run this part of code it throw an Ecxeption                                                          
            Given Below is the Error.. 
        The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.
    Bikky Kumar

     try
                    MailMessage mail = new MailMessage();
                    SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
                    mail.From = new MailAddress("[email protected]");
                    mail.To.Add("[email protected]");
                    mail.Subject = "Test Mail..!!!!";
                    mail.Body = "mail with attachment";
                    System.Net.Mail.Attachment attachment;
                    attachment = new System.Net.Mail.Attachment(@"C:\Attachment.txt");
                    mail.Attachments.Add(attachment);
                    SmtpServer.Port = 587;
    SmtpServer.UseDefaultCredentials = true;    ///Set it to false, or remove this line
                    SmtpServer.Credentials = new System.Net.NetworkCredential("userid", "Password");
                    SmtpServer.EnableSsl = true;
                    SmtpServer.Send(mail);
    Catch(Exception exception)
    Given Below is the Error..      The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.
    Solution:
    The error might occur due to following cases.
    case 1: when the password is wrong
    case 2: when you try to login from some App
    case 3: when you try to login from the domain other than your time zone/domain/computer (This
    is the case in most of scenarios when sending mail from code)
    There is a solution for each
    solution for case 1: Enter the correct password.
    Recomended: solution for case 2: go to
    security settings at the following link https://www.google.com/settings/security/lesssecureapps and
    enable less secure apps . So that you will be able to login from all apps.
    solution 1 for case 3: (This might be helpful) you need to review the activity. but reviewing the activity will not be helpful due to latest security
    standards the link will not be useful. So try the below case.
    solution 2 for case 3: If you have hosted your code somewhere on production server and if you have access to the production server, than take remote
    desktop connection to the production server and try to login once from the browser of the production server. This will add exception for login to google and you will be allowed to login from code.
    But what if you don't have access to the production server. try
    the solution 3
    solution 3 for case 3: You have to enable
    login from other timezone / ip for your google account.
    to do this follow the link https://g.co/allowaccess and
    allow access by clicking the continue button.
    And that's it. Here you go. Now you will be able to login from any of the computer and by any means of app to your google account.
    Regards,
    Nabeel Arif

Maybe you are looking for