Gmail hosted with java

Hi folks,

I switched to gmail hosted service.

Previously I had my account at gmail for example asdf@gmail.com

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()

{

returnnew PasswordAuthentication("login","pwd");

}

}

This works fine.

Now I have support@mycompany.com I still use gmail. I followed the directions and made all necessary mappings on www.dyndns.com - added Mail eXchanger (MX) Records: ASPMX.L.GOOGLE.COM.

In this case how the above configuration (code) is going to look like?

Should I use the same smtp.gmail.com if so what is the login? I am confused.

Could anybody explain?

Thank you.

[2152 byte] By [ThisObjecta] at [2007-10-3 2:57:10]
# 1
Any ideas?
ThisObjecta at 2007-7-14 20:46:31 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Somebody could in helping them?
Tacianoa at 2007-7-14 20:46:31 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Hi,I am still investigating here...thanks.
ThisObjecta at 2007-7-14 20:46:31 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...