Skip to content

Instantly share code, notes, and snippets.

@sharish
Last active April 8, 2016 06:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharish/701487ac01841433ffd5 to your computer and use it in GitHub Desktop.
Save sharish/701487ac01841433ffd5 to your computer and use it in GitHub Desktop.

###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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment