發表文章

目前顯示的是 8月, 2016的文章

vmware fusion自訂network adapter的DHCP設定

vmware fusion自訂network adapter的DHCP設定 VMware Fusion 6.x Professional, Fusion 7.x Pro and Fusion 8.x Pro includes a network editor that can be used to make the required changes. To access the network editor:     Click VMware Fusion in the menu bar.     Click Preferences.     Click Network.     Click the + sign located at the bottom right to add a custom network connection. Reference Modifying the DHCP settings of vmnet1 and vmnet8 in Fusion (1026510) https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1026510

JavaMail透過Gmail寄信發生AuthenticationFailedException錯誤

狀況 JavaMail透過Gmail寄信發生AuthenticationFailedException錯誤 java產生的exception範例如下: javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvL 534-5.7.14 534-5.7.14  Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14  Learn more at 534 5.7.14  https://support.google.com/mail/answer/78754 gmail也寄信警告通知: Someone just tried to sign in to your Google Account demo@demo.com from an app that doesn't meet modern security standards. 原因 因為Gmail已經改變安全政策建議使用OAuth2方式取得權限,所以JavaMail的登入方式被拒。 解決方法 至google網站修改權限,將Access for less secure apps設為開啟(Turn on) https://www.google.com/settings/security/lesssecureapps reference http://www.oracle.com/technetwork/java/javamail/faq-135477.html#gmailauth