C
chtogdepochem
Hi All,
I switched to gmail hosted service.
Previously I had my account at gmail for example (e-mail address removed)
My program would send emails using the code:
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
boolean debug = true;
Poperties props = new Properties();
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.auth", "true");
props.put("mail.debug", "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");
Session session = Session.getDefaultInstance(props, new
javax.mail.Authenticator()
{
protected PasswordAuthentication
getPasswordAuthentication()
{
return new PasswordAuthentication("login", "pwd");
}
}
now I have (e-mail address removed) I still use gmail. In this case how the
above configuration is going to look like?
Thanks!
I switched to gmail hosted service.
Previously I had my account at gmail for example (e-mail address removed)
My program would send emails using the code:
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
boolean debug = true;
Poperties props = new Properties();
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.auth", "true");
props.put("mail.debug", "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");
Session session = Session.getDefaultInstance(props, new
javax.mail.Authenticator()
{
protected PasswordAuthentication
getPasswordAuthentication()
{
return new PasswordAuthentication("login", "pwd");
}
}
now I have (e-mail address removed) I still use gmail. In this case how the
above configuration is going to look like?
Thanks!