sangramjadhav / simple-java-mail Goto Github PK
View Code? Open in Web Editor NEWClone of Simple-java-mail
Home Page: http://code.google.com/p/simple-java-mail
Clone of Simple-java-mail
Home Page: http://code.google.com/p/simple-java-mail
Here are some basic instructions to build and run the test class. With Ant (default target is 'run'): ant clean: - deletes the entire target folder ant compile: - compiles all classes to the target folder ant run -Dhost=smtp.somehost.com -Dport=port -Dusername=username -Dpassword=password - runs the testclass with the given smtp server and account ant jar: - creates a library jar from the framework ----------------------------------------------- Compiling and running the testclass from the command line: mkdir target\classes javac -cp lib\mailapi.jar;lib\smtp.jar;lib\log4j-1.2.15.jar;lib\activation.jar -d target\classes src\MailTest.java src\org\codemonkey\simplejavamail\*.java java -cp lib\mailapi.jar;lib\smtp.jar;lib\log4j-1.2.15.jar;lib\activation.jar;target\classes -Dhost=smtp.someserver.com -Dusername=joe -Dpassword=sixpack MailTest
One other thing which I spotted which aren't catered for by SimpleJavaMail but
are by the Javamail API.
Headers
-------
Personally, I hate them, but clients are always asking if you can set the
"important" flag on emails. This is normally done by setting custom headers
such as X-Priority and Importance. To do this, javamail provides
message.setHeader(String,String). Would be good to be able to do this in
simplejavamail
I'm now using simplejavamail "in anger" (although still in a testing phase) so
I may well suggest some other enhancements as I find them.
As I said last time, great work...much easier than the javamail api.
Tom
Original issue reported on code.google.com by [email protected]
on 18 Aug 2011 at 4:31
When calling
new org.codemonkey.simplejavamail.Mailer(mySession).sendMail(myEmail);
the following exception occurrs:
Exception in thread "main" java.lang.NullPointerException
at org.codemonkey.simplejavamail.Mailer.logSession(Mailer.java:260)
at org.codemonkey.simplejavamail.Mailer.sendMail(Mailer.java:238)
at MyClientCode
This is because Mailer.logSession(Session, TransportStrategy) tries to access
members of the TransportStrategy, which was never initialized by the
Mailer(Session) constructor.
Original issue reported on code.google.com by [email protected]
on 19 Sep 2012 at 6:10
This is more a feature enhancement than a bug report. The library seems
excellent, but the one thing it doesn't support is the "reply to" option which
JavaMail does. Should just be a case of adding
1. a setReplyTo(String replyto) method to Email
2. a getReplyTo() method to Email
3. a check in Mailer to see whether a reply to is set and use it
This can be quite an important flag if using libraries in applications where
you are sending on behalf of someone else.
Other than that, excellent work.
Original issue reported on code.google.com by [email protected]
on 19 Jul 2011 at 9:01
Need to document developer logging options, system properties,
logging.properties, etc.
I could find no information on this on your page. If there, please provide a
link...
Thanks,
Jeff
Original issue reported on code.google.com by [email protected]
on 2 Nov 2012 at 12:07
There are some email addresses that behave *very* poorly with the validation
done in EmailValidationUtil. I think it might be due to the nested quantifiers
in the complex regexes there. They literally take hours to finish the
validation, using 100% CPU.
Is there any way to fix this, and barring that, can an option be added to skip
validation?
To reproduce:
1. Try to send an email to an address like
[email protected]
2. Wait for computer to explode
(Using java 1.6.0_31)
Original issue reported on code.google.com by [email protected]
on 20 Apr 2012 at 10:13
Allow use of this class outside package
Original issue reported on code.google.com by [email protected]
on 28 Jun 2012 at 4:47
Attachments:
It would be nice to be able to enable the "mail.debug" property that javamail
supports, so that a full communication log with the mail server can be logged.
Original issue reported on code.google.com by [email protected]
on 5 Dec 2014 at 1:56
What steps will reproduce the problem?
1. Attach a file with åäö characters in them (like image)
2. Recieve the email and see åäö is now incorrectly encoded.
3.
What is the expected output? What do you see instead?
The file attached with correct name. The file attached with swedish characters
garbled
What version of the product are you using? On what operating system?
2.1
Please provide any additional information below.
I did a quick google and mail attachmanet names needed to be encoded correctly.
And I wonder if this is lacking.
Original issue reported on code.google.com by [email protected]
on 23 Jul 2013 at 11:06
It would be nice to add a feature that performs all sorts of validations on the
email, but stops short from actually delivering the email over the network.
For unit testing purposes, etc.
Original issue reported on code.google.com by [email protected]
on 12 Jul 2012 at 1:50
What steps will reproduce the problem?
1. Try to send email to å[email protected]
What is the expected output? What do you see instead?
Email should send according to http://tools.ietf.org/html/rfc6531
Instead i get: Get this error Could not send email. Inner error: Invalid TO
address: org.codemonkey.simplejavamail.Email@60e6e627
What version of the product are you using? On what operating system?
I use 2.1 on windows
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 2 Sep 2014 at 9:47
What steps will reproduce the problem?
1. Just trying to implement the example that you provided in the wiki
What is the expected output?
Nothing just email has to be sent...
What do you see instead?
See here: http://pastebin.com/t58fWEpG
What version of the product are you using? On what operating system?
Latest
Please provide any additional information below.
Trying to send email with gmail. Added your libraries and code compiles OK. I'm
using Eclipse on Xubuntu 11.10.
Original issue reported on code.google.com by [email protected]
on 31 Jul 2012 at 3:28
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.