SendEmail.md

March 3, 2016 ยท View on GitHub

###Sending the email over mailgun.com

For automatically sending the email after this animation is done, You can use mailgun.com services to autosend the email.

####STEPS:

  • Goto www.mailgun.com and create a new account.
  • Confirm your email address and verify the OTP over mobile SMS
  • After logging in, goto https://mailgun.com/app/domains
  • Configure any Active domain or use sandbox domain.
  • Note the SMTP login info and SMTP password and SMTP Host.
smtp screen shot 2016-03-03 at 11 43 22 am
  • Add the library dependencies to build.gradle
dependencies {
    compile files('libs/mail.jar')
    compile files('libs/activation.jar')
    compile files('libs/additionnal.jar')

}
  • Refer MainActivity.java to send the email - https://gist.github.com/cooltechworks/f42e3e88abbbaa197497
  • Fill the SMTP Login, SMTP Password, SMTP Host as per the screenshot with your credentials.
  • Also fill the from Email Address as anything per your convience or with your user's email address.