Consider written by R.Nagarajan:
Can someone help me with a java code that sends an email using gmail as mail server?
I am writing an application that generates some log files. The application runs as a cron job. I want a java code that attaches this log file and emails me. If it is not possible for java mail to send a mail using gmail as mail server, I also have a MS Exchange Server “GVW1113EXC.america.net” configured. Please help me!!!
This really is top tips on Can someone help me with a java code that sends an email using gmail as mail server? which you may really have to resolve problems itself. Eventually this will assist in lots of ways: that will create your own life significantly better. Wishing top tips on Can someone help me with a java code that sends an email using gmail as mail server? may well be an alternative later in life.
Answer by Beatmaster
You could use Vesijama, the Very Simple Java Mail library, found over at http://blog.projectnibble.org/2009/04/27/vesijama-very-simple-java-mail/ or have a look at Geroa: http://www.theserverside.com/news/thread.tss?thread_id=58140
Answer by Kishore G
To send mail using gmail try the article at: http://itsjava.blogspot.com/2009/11/send-mail-through-gmail.html
Figure out greater?
Add your own individually styled answer inside of the comments!