I want my app to send an email to myself when someone registers in my app.. I did use the code in this topic to manage this. Sending Email in Android using JavaMail API without using the default/built-in app
I don't get any errors but I also don't get any mails.. As you see below this is the code that is summoned after a button click.. Has any Idea what the problem might be..The Toast appears so the code in the try block got used but unfortunately not well ...
GMailSender sender = new GMailSender("myemailadress@gmail.com", "*********");
sender.sendMail("New user in App", "bodyyy","myemailadress@gmail.com","myemailadress@gmail.com");  
Toast.makeText(this, "mail sent", 200).show();
This are my properties. I tried it with 587 and 993 but no success. and yes my emailadress is a gmail :)
Properties props = new Properties();   
props.setProperty("mail.transport.protocol", "smtp");   
props.setProperty("mail.host", mailhost);   
props.put("mail.smtp.auth", "true");   
props.put("mail.smtp.port", "465");   
props.put("mail.smtp.socketFactory.port", "465");   
props.put("mail.smtp.socketFactory.class",  "javax.net.ssl.SSLSocketFactory");   
props.put("mail.smtp.socketFactory.fallback", "false");   
props.setProperty("mail.smtp.quitwait", "false");   
 
     
    