<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"> <property name="defaultEncoding" value="UTF-8"/> <property name="host" value="smtp.gmail.com"/> <property name="port" value="465"/> <property name="username" value="..."/> <!-- e.g. username@gmail.com --> <property name="password" value="..."/> <property name="javaMailProperties"> <value> mail.debug=true mail.smtp.auth=true mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory mail.smtp.socketFactory.fallback=false </value> </property> </bean>
Spring javamailSenderImpl bean configuration for Gmail
About Ola Herrdahl
Leave a Reply Click here to cancel reply.
Ola Herrdahl
Eventual consistent developer currently working on solving complex problems by applying simple solutions.
- CQRS for dummies November 13, 2011
- ASP.NET: System.IO.IOException: The file or directory is corrupted and unreadable. April 25, 2010
- Watin and portable Firefox March 15, 2011
- IntelliJ cannot create new class April 21, 2010
- Accessing Ubuntu running on Hyper-V over Remote Desktop November 20, 2010
- Document based sagas for dummies November 13, 2011
- CQRS for developers November 13, 2011
- CQRS for dummies November 13, 2011
- Access a Mercurial (BitBucket) repository using SSH key from TeamCity September 15, 2011
- Setting up kdiff3 for git on windows June 22, 2011
- Jigs: Thank you so much, you saved my life. I have been ...
- Document based sagas for dummies | Ola Kodar: [...] previous two post, CQRS for dummies and CQRS...
- CQRS for developers | Ola Kodar: [...] the CQRS for dummies post we can extract a c...
- Scott: WOW!! This saved me literally HOURS of searching!...
- Evgeni: check name of your package where you try to create...
.net
.net 4
android
ar
ASP.NET
availability
browser-hell
c#
c/c++
cap
CQRS
csharp
css
database
daypilot-lite
dynamic
error
git
hg
Hyper-V
IIS6
intellij
java
javascript
jquery
kdiff3
microsoft
monorail
MS Office
mysql
nhibernate
raid
scalability
scm
spring
stability
strange
test
Ubuntu
version
vs2010
web
windows
wtf
xunit
Categories
- Error of the Day (14)
- Hailstorm (2)
- Software Development (4)
- Tips & Tricks (6)
- Web Development (1)
Recent Tweets
Follow @herrdahl on Twitter
No comments yet.