Last active
March 9, 2017 20:50
-
-
Save ssaurel/548076d1aadba8e983cf06cbc0e1e795 to your computer and use it in GitHub Desktop.
Block of code to call the GMailSender class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Thread(new Runnable() { | |
@Override | |
public void run() { | |
try { | |
GMailSender sender = new GMailSender("sylvain.saurel@gmail.com", | |
"your_password"); | |
sender.sendMail("Hello from JavaMail", "Body from JavaMail", | |
"sylvain.saurel@gmail.com", "sylvain.saurel@gmail.com"); | |
} catch (Exception e) { | |
Log.e("SendMail", e.getMessage(), e); | |
} | |
} | |
}).start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment