{"id":222,"date":"2020-06-26T06:48:45","date_gmt":"2020-06-26T06:48:45","guid":{"rendered":"https:\/\/www.smtp-server.net\/?p=222"},"modified":"2020-06-14T09:01:50","modified_gmt":"2020-06-14T09:01:50","slug":"smtp-server-free-no-authentication-error-530-access-denied-free-users-cannot-access-this-server-in-java-mail","status":"publish","type":"post","link":"https:\/\/www.smtp-server.net\/fr\/smtp-server-free-no-authentication-error-530-access-denied-free-users-cannot-access-this-server-in-java-mail\/","title":{"rendered":"SMTP Server Free No Authentication - Error 530 Access Denied : Free Users Cannot Access This Server. Dans Java Mail ?"},"content":{"rendered":"<h3>Erreur 530 Acc\u00e8s refus\u00e9 : Les utilisateurs libres ne peuvent pas acc\u00e9der \u00e0 ce serveur. dans java mail ? <\/h3>\n<p><strong>Erreur 530 Acc\u00e8s refus\u00e9 : Les utilisateurs libres ne peuvent pas acc\u00e9der \u00e0 ce serveur. dans java mail ? ... j'ai fait un prog en java en utilisant l'api java mail et maintenant quand j'envoie un email il y a l'erreur suivante <\/p>\n<p>Exception dans le thread \"main\" javax.mail.Authentication : 530 Acc\u00e8s refus\u00e9 : Les utilisateurs libres ne peuvent pas acc\u00e9der \u00e0 ce serveur.<\/p>\n<p>        at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:648)<br \/>\n        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:583)<br \/>\n        at javax.mail.Service.connect(Service.java:313)<br \/>\n        at javax.mail.Service.connect(Service.java:172)<br \/>\n        at javax.mail.Service.connect(Service.java:121)<br \/>\n        at javax.mail.Transport.send0(Transport.java:190)<br \/>\n        at javax.mail.Transport.send(Transport.java:120)<br \/>\n        at SendApp_one.send(SendApp_one.java:36)<br \/>\n        at SendApp_one.main(SendApp_one.java:56)<\/p>\n<p>Mon code source est le suivant :<\/p>\n<p>import java.io.* ;<br \/>\nimport javax.mail.* ;<br \/>\nimport javax.mail.internet.* ;<br \/>\nimport javax.activation.* ;<\/p>\n<p>public class SendApp_one<br \/>\n {<\/p>\n<p>     private static final String SMTP_AUTH_USER =MyYahooUsename ;<br \/>\n     private static final String SMTP_AUTH_PWD =Myyahoopassword ;<\/p>\n<p>    public void send(String smtpHost,String from, String to,String subject, String content)<br \/>\n                jette AddressException, MessagingException<br \/>\n\t{<\/p>\n<p>        \/\/ Cr\u00e9er une session de courrier \u00e9lectronique<br \/>\n        java.util.Properties props = new java.util.Properties() ;<br \/>\n        props.put(\"mail.smtp.host\", smtpHost) ;<br \/>\n        props.put(\"mail.debug\", \"false\") ;<br \/>\n        props.put(\"mail.smtp.auth\", \"true\") ;<br \/>\n        Authenticator auth= new SMTPAuthenticator() ;<br \/>\n        Session session = Session.getInstance(props,auth) ;<br \/>\n        session.setDebug(true) ;<\/p>\n<p>        \/\/ Construire le message<br \/>\n        Message msg = nouveau MimeMessage(session) ;<br \/>\n        msg.setFrom(new InternetAddress(from)) ;<br \/>\n        msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to)) ;<br \/>\n        msg.setSubject(subject) ;<br \/>\n        msg.setText(content) ;<\/p>\n<p>        \/\/ Envoyer le message<br \/>\n        Transport.send(msg) ;<br \/>\n        System.out.println(\"L'email a \u00e9t\u00e9 envoy\u00e9 !...\") ;<br \/>\n    }<br \/>\n    private class SMTPAuthenticator extends javax.mail.Authenticator<br \/>\n    {<\/p>\n<p>        public PasswordAuthentication getPasswordAuthentication()<br \/>\n        {<br \/>\n          String username =SMTP_AUTH_USER ;<br \/>\n          String password =SMTP_AUTH_PWD ;<br \/>\n          return new PasswordAuthentication(username, password) ;<br \/>\n        }<br \/>\n    }<\/p>\n<p>    public static void main(String[] args) throws Exception {<br \/>\n        \/\/ Envoi d'un message test<br \/>\n\t\tSendApp_one obj=new SendApp_one() ;<br \/>\n        String subject=new String(\"\"+args[0]) ;<br \/>\n       String text=new String(\"\"+args[1]) ;<br \/>\n        obj.send(\"smtp.mail.yahoo.com\", \"Yahooid\", \"YahooId\",subject,text) ;<br \/>\n    }<br \/>\n}<br \/>\nVeuillez me donner la solution .........................<br \/>\nMerci .....<\/strong><\/p>\n<p>Yahoo n'offre pas de services SMTP et POP aux utilisateurs de comptes gratuits. Vous devez acheter le service Yahoo Mail PLUS. <\/p>\n<p>http:\/\/answers.yahoo.com\/question\/index?qid=20060918091416AAIyC6m<br \/>\nhttp:\/\/overview.mail.yahoo.com\/enhancements\/mailplus<\/p>\n<p>-<br \/>\nKasey C, gourou du PC depuis l'\u00e9poque de l'Apple II<br \/>\nN'oubliez jamais que vous \u00eates unique, comme tout le monde.<\/p>\n<p><!--more--><\/p>\n<p>I&#039;ve had the same problem for some days while trying to send email from Opera Mail. Now my configuration is server smtp.mail.yahoo.com on port 465 and is working fine.<\/p>\n<p>Hope it helps<br \/>\nSergio<\/p>\n<p>Clause de non-responsabilit\u00e9 - Les opinions exprim\u00e9es dans cet article sont fournies par un tiers et peuvent ne pas correspondre \u00e0 celles de notre site web.<\/p>","protected":false},"excerpt":{"rendered":"<p>Error 530 Access denied : Free users cannot access this server. in java mail? Error 530 Access denied : Free users cannot access this server. in java mail? &#8230; i have made prog in java using java mail api now when i am send email it throws following error Exception in thread &quot;main&quot; javax.mail.Authentication: 530 <a href=\"https:\/\/www.smtp-server.net\/fr\/smtp-server-free-no-authentication-error-530-access-denied-free-users-cannot-access-this-server-in-java-mail\/\" rel=\"nofollow\"><span class=\"sr-only\">Read more about SMTP Server Free No Authentication &#8211; Error 530 Access Denied : Free Users Cannot Access This Server. In Java Mail?<\/span>[...]<\/a><\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-222","post","type-post","status-publish","format-standard","hentry","category-smtp-questions"],"_links":{"self":[{"href":"https:\/\/www.smtp-server.net\/fr\/wp-json\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smtp-server.net\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.smtp-server.net\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.smtp-server.net\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smtp-server.net\/fr\/wp-json\/wp\/v2\/comments?post=222"}],"version-history":[{"count":1,"href":"https:\/\/www.smtp-server.net\/fr\/wp-json\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":223,"href":"https:\/\/www.smtp-server.net\/fr\/wp-json\/wp\/v2\/posts\/222\/revisions\/223"}],"wp:attachment":[{"href":"https:\/\/www.smtp-server.net\/fr\/wp-json\/wp\/v2\/media?parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.smtp-server.net\/fr\/wp-json\/wp\/v2\/categories?post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.smtp-server.net\/fr\/wp-json\/wp\/v2\/tags?post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}