Code Monkey home page Code Monkey logo

androidemail's Introduction

android客户端通过Email发送验证码或者反馈信息的解决方案。

本例子整合下面的资源,邮箱服务器使用网易的163。

准备工作

java方案

android出现问题

问题一 : java的jar包不能用

问题二: 抛出异常

		com.forjun.emaidemo W/System.err: com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp11,D8CowADXqSz+WiZZ_YeGHA--.41353S2 1495685886,please see http://mail.163.com/help/help_spam_16.htm?ip=110.19.183.192&hostid=smtp11&time=1495685886
		com.forjun.emaidemo W/System.err:     at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1515)
		com.forjun.emaidemo W/System.err:     at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1321)
		com.forjun.emaidemo W/System.err:     at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:637)
		com.forjun.emaidemo W/System.err:     at javax.mail.Transport.send0(Transport.java:189)
		com.forjun.emaidemo W/System.err:     at javax.mail.Transport.send(Transport.java:118)
		com.forjun.emaidemo W/System.err:     at com.forjun.email.SimpleMailSender.sendTextMail(SimpleMailSender.java:58)
		com.forjun.emaidemo W/System.err:     at preformSendEmail(MainActivity.java:70)
		com.forjun.emaidemo W/System.err:     at com.forjun.emaidemo.MainActivity$1.run(MainActivity.java:99)
		com.forjun.emaidemo W/System.err:     at java.lang.Thread.run(Thread.java:761)
  • 异常原因:高端网易觉得邮件是垃圾邮件,帮忙拒绝了。 请标题和内容里面别包含测试等字眼。 icon

扩展知识

androidemail's People

Contributors

forjunjian avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.