• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to send mail to hotmail,yahoo,rediffmail?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic