###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.
- Copy the three libraries from link and put it in libs folder. - https://code.google.com/archive/p/javamail-android/downloads
- 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.