Gmail hosted with java
I switched to gmail hosted service.
Previously I had my account at gmail for example email@example.com
My program would send emails using the code:
boolean debug = true;
Poperties props = new Properties();
Session session = Session.getDefaultInstance(props, new
return new PasswordAuthentication("login", "pwd");
now I have firstname.lastname@example.org I still use gmail. In this case how the
above configuration is going to look like?
That send for GMail worked?
so in this case will it still be smtp.gmail.com?
I am stil investigating on this topic.
In Gmail you can set the return-address, so send mail using your domain name. Go to Settings > Accounts, and add your new address. This address is displayed to the user when you send mail. The headers will probably still mention your gmail address. I haven't tried this, but it might just work for you!