Connecting to gmail / yahoo mail is kinda tricky. You need to setup a socket connection to the email system. Something similar to the following will help you do this.
if (contact.from.contains("gmail")) { props.put("mail.smtp.starttls.enable", "true"); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.socketFactory.port", port);
Thank you so much for this video! I was about to lose my freaking mind trying to find the 'add to build path' option!
CapumOfOuttaSpace 4 months ago
thanks for the video dude! :D
adawg95 9 months ago
We would need to have our own email server? or ftp server? I am using TomCat
How I configure TomCat as email server?
jhonilson 1 year ago
how do you create a decent stmp? I can't seem to snag yahoo as a host?
mail.yahoo.com gets a connection timed out.
dclan123 1 year ago
@dclan123
Connecting to gmail / yahoo mail is kinda tricky. You need to setup a socket connection to the email system. Something similar to the following will help you do this.
if (contact.from.contains("gmail")) { props.put("mail.smtp.starttls.enable", "true"); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.socketFactory.port", port);
... }
honeyresearch 1 year ago