{"blog_title":"\u30ed\u30b0\u65e5\u8a18","categories":["Java"],"published":"2010-11-18 02:26:48","image_url":null,"provider_name":"Hatena Blog","type":"rich","author_name":"n314","width":"100%","height":"190","version":"1.0","blog_url":"https://n314.hatenablog.com/","provider_url":"https://hatena.blog","title":" JavaMail\u304c\u9045\u3044","url":"https://n314.hatenablog.com/entry/20101118/1290101208","description":"SMTP\u3092\u558b\u3063\u3066\u308b\u304b\u3089\u9045\u3044\u306e\u304b\u306a\uff1f\u3068\u601d\u3063\u3066sendmail\u5b9f\u884c\u306b\u5207\u308a\u66ff\u3048\u3066\u307f\u305f\u3002 class MailService { ... private final boolean useSendMail; public MailService(){ if (new File(SENDMAIL_PATH).exists()) useSendMail = true; else useSendMail = false; } ... public void doSend(String to, String body) throws IOException { if (!useSendMail){ // se\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fn314.hatenablog.com%2Fentry%2F20101118%2F1290101208\" title=\" JavaMail\u304c\u9045\u3044 - \u30ed\u30b0\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/n314/"}