Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to send mail to hotmail,yahoo,rediffmail?  RSS feed

 
Praveen Ford
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
I run an tomcat server on my system. I have written a 'sendmail.jsp', which is supposed to send mails to hotmail,yahoo and rediffmail. This sendmail.jsp has been downloaded by me from net . But , i have been getting lot of errors. I cant get to mail to yahoo. Can somebody explain me why i cant do this simple job? I am new to javamail stuff. can somebody explain to me in detail, or give me some links that i can explore on the net.
Thanks and regards,
Praveen Ford.
 
vijaykumar shah
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello..
It is very simple when using javamail to send emails.. there are certain files and packages to be downloaded and are required to be kept in the classpath for e.g. activation , mail .jar files are required to be kept in classpath and then u can access those packages...
lastly check that that mail smtp server which u are using does allow sending of emails to out side email ids.. is there any filter added to outgoing or incoming mails..
This is all.. the code is very perfect... infact if u have downloaded...
vijay
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have been getting lot of errors.

Why do people do this?
The content of the errors might tell us whats going on - your note does not even give a clue as to what kind of errors or when they appear in the process of trying to send mail.
Bill
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66184
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had a vision last night that your problem is on line 213 in the 9th character position. Or maybe I just had indigestion.
bear
 
Brian Pipa
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used http://www.coolservlets.com/Email/ with much success in sending email. It's really easy to use. In fact, one of my apps (Nator) uses it for emailing.
Brian
 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Obviously we have no idea without your code, but just a guess...
You know that JavaMail requires that YOU have an SMTP server that you can log into and through which you can send emails, right?
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Praveen Ford:
Hi everybody,
I run an tomcat server on my system. I have written a 'sendmail.jsp', which is supposed to send mails to hotmail,yahoo and rediffmail. This sendmail.jsp has been downloaded by me from net . But , i have been getting lot of errors. I cant get to mail to yahoo. Can somebody explain me why i cant do this simple job? I am new to javamail stuff. can somebody explain to me in detail, or give me some links that i can explore on the net.
Thanks and regards,
Praveen Ford.

You're making it hard for us to help you Praveen
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!