outlook - Using Java Mail -
i send email using java application. when press button, there should automatically sent email , somehow didn't find solution yet. found lot of example codes in internet, doesn't matter if use gmail / gmx or outlook, receive message : "could not connect smtp host: mail.gmx.net, port: 587; nested exception is: java.net.connectexception: connection timed out: connect" based on domain, host mail.gmx.net or smtp.office365.com etc.. think there's somehow connection problem, wasn't able fix it. have ideas / codes worked ? thank in advance. tobias use code send email .this works fine me package sendmail; import java.util.properties; import javax.mail.message; import javax.mail.messagingexception; import javax.mail.session; import javax.mail.transport; import javax.mail.internet.addressexception; import javax.mail.internet.internetaddress; import javax.mail.internet.mimemessage; /** * @author akash073 * */ public class crunchifyjava...