anyway, I figure out how to config secure smtp via gmail
2 additional properties are required:  mail.smtp.starttls.enable &
mail.smtp.auth
btw, I am using spring 2.5 & javamail 1.4  . it works fine

        <bean id="mailSender"
                class="org.springframework.mail.javamail.JavaMailSenderImpl">
                <property name="host" value="${mail.host}" />
                <property name="username" value="${mail.username}" />
                <property name="password" value="${mail.password}" />
                <property name="javaMailProperties">
                        <props>
                                <prop 
key="mail.smtp.starttls.enable">true</prop>
                                <prop key="mail.smtp.auth">true</prop>
                        </props>
                </property>
        </bean>


Derek Broughton-2 wrote:
> 
> Matt Raible wrote:
> 
>> Googling for it turns up a couple of commercial packages - the first
>> one costing $1000.
>> 
>> http://www.google.com/search?q=smtp+ssl+java
>> 
> 
> That seems a hefty price to pay for what would seem like it should be
> built
> into javamail (most apps that talk SMTP have no trouble doing SSL/TLS) but
> the cheap alternative is to use a local SMTP server to forward to gmail. 
> My corporate email is hosted at google, too, and this is what I do.
> -- 
> derek
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-config-smtp-via-ssl---for-example-gmail%27s-smtp---tp10033159s2369p14412270.html
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to