Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 520 Vote(s) - 3.47 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Which artifact for org.springframework.mail?

#1
I'd like to use spring support for sending mails. My project is built with maven-2 and I use spring-core 2.5.5 I tried to look in maven central repo for artifact to include in my pom.xml, and the only one I found is [spring support][1]. The problem is that the highest version in repo is 2.0.8 and it depends on spring-core v. 2.0.8. Should I add it and exclude from its dependencies spring-core, spring-aop and so on, or should I look for another artifact (but which one will do?) or use another repo? Which is the proper maven-2 artifact for org.springframework.mail and where can I find it?


[1]:

[To see links please register here]

Reply

#2
The mail stuff is found, rather bizarrely, in the [context-support artifact][1].


[1]:

[To see links please register here]

Reply

#3


<!-- ########### SPRING-CONTEXT-SUPPORT ############ -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>3.0.5.RELEASE</version>
</dependency>
Reply

#4
For using `MailSender` and `SimpleMailMessage` through Spring you can use these imports in your code:

import org.springframework.mail.MailSender;
import org.springframework.mail.SimpleMailMessage;

And add their jars in your project.


Otherwise if you are using maven then you have to make these imports in your source and then add dependencies :

1.

[To see links please register here]

2.

[To see links please register here]


You will get the mail support from both of them.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through