Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody,

From past many days I am facing a problem regarding servlet.I am new for SMTP server kind of programs.
My problem is

I developed a page which is called as 'contactus.html' for a website which is dynamic website using java. From contactus page where user enter his details and his comments, those details and comments have to send to a mailid as a mail. I tried with the servlet, but i am facing a problem that if i block my antivirus in my system then only my mail is sending from my website to that particular mailid. If my antivirus is 'on' then mail is not sending instead it is showing SMTP error.

Please give me suggesions to getrid of this problem.
Posted

1 solution

Many ISPs block outgoing email on port 25. You may have to switch to another port (e.g. 587 or 465). Contact your ISP's support to see if they are blocking your outgoing email port. or you can add port 25 to the exceptions list .


https://support.mozilla.org/en-US/kb/cannot-send-messages[^]

Read here also
http://www.authsmtp.com/faqs/faq-4.html[^]
 
Share this answer
 
v3
Comments
Meghamaalaa 7-Oct-14 8:06am    
Thank u for ur reply.
I am using 587 as the port number, then also I am facing same problem .
[no name] 7-Oct-14 8:08am    
have you tried adding that port to exception list?
[no name] 7-Oct-14 8:10am    
If you are still facing the problem, check the below link

https://support.tigertech.net/email-test
Meghamaalaa 7-Oct-14 8:15am    
ya I tried.

Can I ask you one question?
Is there any other way rather than servlets to send a contactpage details as a mail to the particular mailid from a java dynamic website?
[no name] 7-Oct-14 8:18am    
Yes you can use javamail i guess ,

http://www.rgagnon.com/javadetails/java-0504.html

https://code.google.com/p/simple-java-mail/wiki/Manual

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900