Contact Us
  
 
 
    SearchSearch   RegisterRegister   Log inLog in 

sending email using javamail

sending email using javamail

 
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans
View previous topic :: View next topic  
Author Message
juniormember



Joined: 28 Jun 2008
Posts: 154

PostPosted: Sat Nov 15, 2008 6:38 am    Post subject: sending email using javamail Reply with quote

Hi
I am using javamail API to send email from server to clients. But it is not working, i am using same thing as written in docs of javamail and examples of javamail. Still it is not going email to outside. I have copied activation.jar, smtp.jar and mail.jar in lib of tomcat and WEB-INF/lib folder. My network engineer told me that no port is blocked by them to send email in firewall. All ports are allowed in firewall.
Back to top
View user's profile Send private message
javatech



Joined: 19 Jan 2007
Posts: 39

PostPosted: Sun Nov 23, 2008 1:26 pm    Post subject: Reply with quote

I hope you are using right code without any bug. This is very common problem of email. Today's biggest problem is spam and every mailing company like gmail and yahoo take it strictly about spam. They allow only trusted IPs to listen or get email to their server.

Check
Are you using public dynamic IPs, they dont allow dynamic IPs gmail or other big player
Is Your IP black listed by these company?
Is your smtp server running or not? Try to send email through outlook or other POP client.

If still going email from your smtp server and not from your javamail then problem is in your code. check javamail program and logic
paste code here
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans All times are GMT
Page 1 of 1

 
Jump to:  
  Quick Post a Reply Topic
     
  Name (required)  
     
  Email Address (will not be published) (required)  
     
  Subject of topic (required)  
     
   
     
   
     
  Advertisement  
     
 
     


  More Links  
 
JSP Introduction
JSP Setup
Simple JSP Example
JSP Variable
Array Declaration in JSP
JSP Forms and User Input
Form Validation
JSP Cookies
JSP Session Object
Loop, content collection, iterator, conditional check in JSP
JSP Application Object
JSP Include
JSP Response Object
JSP Request Object
JSP Error Handling
JSP File Handling Object
JSP Action Tag
JSP Implicit Objects
JSP Declaration
JSP Directive
JDBC Introduction
JDBC Driver
JDBC Connection
JDBC Prepared/Statement
JDBC ResultSet
JDBC Close Connection object
JDBC Insert
JDBC Display Records
JDBC Update
JDBC Delete
JDBC Sorting
JDBC Query
JDBC Exception
JDBC Add Batch
JDBC Transaction/RollBack