AnsweredAssumed Answered

sending Email to invited users via gmail

Question asked by tejaswini on Mar 3, 2010
Latest reply on Sep 19, 2010 by chetna
hi there…
   i want to send the mails to the invited users on particular spaces via gmail server.
   i am doing something as
   1) adding following code to the

   # Email configuration =
mail.port = 465
mail.transport.protocol = smtp
mail.smtp.auth = true
mail.smtp.socketFactory.port = 465
mail.smtp.socketFactory.class =
mail.smtp.socketFactory.fallback = false
mail.smtp.timeout = 25000
mail.smtp.starttls.enable = true


2) to core-services-context.xml
<bean id="mailService" class="org.springframework.mail.javamail.JavaMailSenderImpl">
  <property name="host">
  <property name="port">
  <property name="protocol">                           
  <property name="username">
  <property name="password">
  <property name="defaultEncoding">
  <property name="javaMailProperties">
      <prop key="mail.smtp.auth">${mail.smtp.auth}</prop>
      <prop key="mail.smtp.socketFactory.port">${mail.smtp.socketFactory.port}</prop>
      <prop key="mail.smtp.socketFactory.class">${mail.smtp.socketFactory.class}</prop>
      <prop key="mail.smtp.socketFactory.fallback">${mail.smtp.socketFactory.fallback}</prop>
      <prop key="mail.smtp.timeout">${mail.smtp.timeout}</prop>

after restarting the server whn i invite the user and try to send the mail on the right email address i got on console
ERROR[web.bean.TemplateMailHelperBean] Failed to send the email at xxxx address.
org.springframework.mail.MailSendException details(1)are failed message 1:
javax.mail.MessagingException:IO Exception while sending message;
nested exception is:${mail.encoding} at com.sun.mail.smtp.SMTPTransport.sendMessage(…….
and something like that….
do anybody have the solution to this problem????

thanks in advance