{"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-%e8%aa%8d%e8%a8%bc%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%aa%e3%81%97-530-access-denied-free-%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e3%81%afjava%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%a7%e3%81%93","status":"publish","type":"post","link":"https:\/\/www.smtp-server.net\/ja\/smtp-server-free-%e8%aa%8d%e8%a8%bc%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%aa%e3%81%97-530-access-denied-free-%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e3%81%afjava%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%a7%e3%81%93\/","title":{"rendered":"SMTP Server Free \u8a8d\u8a3c\u306a\u3057 - Error 530 Access Denied : Free Users Cannot Access This Server.Java\u30e1\u30fc\u30eb\u3067\u306f\uff1f"},"content":{"rendered":"<h3>\u30a8\u30e9\u30fc530 Access denied : Free users cannot access this server. <\/h3>\n<p><strong>Error 530 Access denied : Free users cannot access this server... in java mail? ... java mail api\u3092\u4f7f\u7528\u3057\u3066java\u3067\u30d7\u30ed\u30b0\u3092\u4f5c\u6210\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002 <\/p>\n<p>\u30b9\u30ec\u30c3\u30c9 \"main\" \u3067\u306e\u4f8b\u5916 javax.mail.Authentication\uff1a530 Access denied : \u30d5\u30ea\u30fc\u306e\u30e6\u30fc\u30b6\u30fc\u306f\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3002.<\/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>\u79c1\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\uff1a<\/p>\n<p>\u30a4\u30f3\u30dd\u30fc\u30c8 java.io.*\uff1b;<br \/>\n\u30a4\u30f3\u30dd\u30fc\u30c8 javax.mail.*\uff1b;<br \/>\n\u30a4\u30f3\u30dd\u30fc\u30c8 javax.mail.internet.*\uff1b;<br \/>\n\u30a4\u30f3\u30dd\u30fc\u30c8 javax.activation.*\uff1b;<\/p>\n<p>public class SendApp_one<br \/>\n {<\/p>\n<p>     private static final String SMTP_AUTH_USER =MyYahooUsename\uff1b;<br \/>\n     private static final String SMTP_AUTH_PWD =Myyahoopassword\uff1b;<\/p>\n<p>    public void send(String smtpHost,String from, String to,String subject, String content)<br \/>\n                throws AddressException, MessagingException<br \/>\n\t{<\/p>\n<p>        \/\/ \u30e1\u30fc\u30eb\u30fb\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b<br \/>\n        java.util.Properties props = new java.util.Properties()\uff1b;<br \/>\n        props.put(\"mail.smtp.host\", smtpHost)\uff1b;<br \/>\n        props.put(\"mail.debug\", \"false\")\uff1b;<br \/>\n        props.put(\"mail.smtp.auth\", \"true\")\uff1b;<br \/>\n        Authenticator auth= new SMTPAuthenticator()\uff1b;<br \/>\n        \u30bb\u30c3\u30b7\u30e7\u30f3 session = Session.getInstance(props,auth)\uff1b;<br \/>\n        session.setDebug(true)\uff1b;<\/p>\n<p>        \/\/ \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u69cb\u7bc9\u3059\u308b<br \/>\n        \u30e1\u30c3\u30bb\u30fc\u30b8 msg = new MimeMessage(session)\uff1b;<br \/>\n        msg.setFrom(new InternetAddress(from))\uff1b;<br \/>\n        msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to))\uff1b;<br \/>\n        msg.setSubject(subject)\uff1b;<br \/>\n        msg.setText(content)\uff1b;<\/p>\n<p>        \/\/ \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b<br \/>\n        Transport.send(msg)\uff1b;<br \/>\n        System.out.println(\"Email Has Been Send !...\")\uff1b;<br \/>\n    }<br \/>\n    private class SMTPAuthenticator extends javax.mail.Authenticator<br \/>\n    {<\/p>\n<p>        public PasswordAuthentication getPasswordAuthentication()<br \/>\n        {<br \/>\n          \u6587\u5b57\u5217 username =SMTP_AUTH_USER\uff1b;<br \/>\n          \u6587\u5b57\u5217\u30d1\u30b9\u30ef\u30fc\u30c9 =SMTP_AUTH_PWD\uff1b;<br \/>\n          \u65b0\u3057\u3044PasswordAuthentication(username, password)\u3092\u8fd4\u3059\uff1b;<br \/>\n        }<br \/>\n    }<\/p>\n<p>    public static void main(String[] args) throws Exception {.<br \/>\n        \/\/ \u30c6\u30b9\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b<br \/>\n\t\tSendApp_one obj=new SendApp_one()\uff1b;<br \/>\n        String subject=new String(\"\"+args[0])\uff1b;<br \/>\n       String text=new String(\"\"+args[1])\uff1b;<br \/>\n        obj.send(\"smtp.mail.yahoo.com\", \"Yahooid\", \"YahooId\",subject,text)\uff1b;<br \/>\n    }<br \/>\n}<br \/>\nplz\u306f\u79c1\u306b\u89e3\u6c7a\u7b56\u3092plz\u3092\u4e0e\u3048\u308b.......................<br \/>\n\u3042\u308a\u304c\u3068\u3046......\u3002.<\/strong>\u3002<\/p>\n<p>Yahoo\u306f\u3001\u7121\u6599\u30a2\u30ab\u30a6\u30f3\u30c8\u30e6\u30fc\u30b6\u30fc\u306b\u306fSMTP\u3068POP\u30e1\u30fc\u30eb\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3057\u3066\u3044\u306a\u3044\u3002Yahoo Mail PLUS\u30b5\u30fc\u30d3\u30b9\u3092\u8cfc\u5165\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002. <\/p>\n<p>http:\/\/answers.yahoo.com\/question\/index?qid=20060918091416AAIyC6m<br \/>\nhttp:\/\/overview.mail.yahoo.com\/enhancements\/mailplus<\/p>\n<p>-<br \/>\n\u30b1\u30fc\u30b7\u30fcC\u3001\u30a2\u30c3\u30d7\u30ebII\u6642\u4ee3\u304b\u3089\u306ePC\u306e\u7b2c\u4e00\u4eba\u8005<br \/>\n\u4ed6\u306e\u4eba\u3068\u540c\u3058\u3088\u3046\u306b\u3001\u81ea\u5206\u3082\u552f\u4e00\u7121\u4e8c\u306e\u5b58\u5728\u3067\u3042\u308b\u3053\u3068\u3092\u5e38\u306b\u5fd8\u308c\u306a\u3044\u3067\u307b\u3057\u3044\u3002.<\/p>\n<p><!--more--><\/p>\n<p>\u6570\u65e5\u524d\u304b\u3089Opera Mail\u304b\u3089\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u540c\u3058\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u73fe\u5728\u3001\u79c1\u306e\u8a2d\u5b9a\u306f\u30dd\u30fc\u30c8465\u306esmtp.mail.yahoo.com\u30b5\u30fc\u30d0\u30fc\u3067\u3001\u554f\u984c\u306a\u304f\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\u3002.<\/p>\n<p>\u304a\u5f79\u306b\u7acb\u3066\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<br \/>\n\u30bb\u30eb\u30b8\u30aa<\/p>\n<p>\u514d\u8cac\u4e8b\u9805 - \u672c\u8a18\u4e8b\u3067\u8ff0\u3079\u3089\u308c\u3066\u3044\u308b\u898b\u89e3\u306f\u7b2c\u4e09\u8005\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u305f\u3082\u306e\u3067\u3042\u308a\u3001\u5f53\u30b5\u30a4\u30c8\u306e\u898b\u89e3\u3068\u306f\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/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 Access denied : Free users cannot access this server. at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:648) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:583) at javax.mail.Service.connect(Service.java:313) at javax.mail.Service.connect(Service.java:172) at javax.mail.Service.connect(Service.java:121) at javax.mail.Transport.send0(Transport.java:190) at javax.mail.Transport.send(Transport.java:120) at SendApp_one.send(SendApp_one.java:36) at SendApp_one.main(SendApp_one.java:56) My Source Code is below : import java.io.*; import javax.mail.*; import javax.mail.internet.*; import javax.activation.*; public class SendApp_one { private static final String SMTP_AUTH_USER =MyYahooUsename; private static final String <a href=\"https:\/\/www.smtp-server.net\/ja\/smtp-server-free-%e8%aa%8d%e8%a8%bc%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%aa%e3%81%97-530-access-denied-free-%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e3%81%afjava%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%a7%e3%81%93\/\" 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\/ja\/wp-json\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smtp-server.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.smtp-server.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.smtp-server.net\/ja\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smtp-server.net\/ja\/wp-json\/wp\/v2\/comments?post=222"}],"version-history":[{"count":1,"href":"https:\/\/www.smtp-server.net\/ja\/wp-json\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":223,"href":"https:\/\/www.smtp-server.net\/ja\/wp-json\/wp\/v2\/posts\/222\/revisions\/223"}],"wp:attachment":[{"href":"https:\/\/www.smtp-server.net\/ja\/wp-json\/wp\/v2\/media?parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.smtp-server.net\/ja\/wp-json\/wp\/v2\/categories?post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.smtp-server.net\/ja\/wp-json\/wp\/v2\/tags?post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}