如何从html页面发送邮件到java网站的特定mailid [英] How to send mail from a html page to a particular mailid from java website

查看:127
本文介绍了如何从html页面发送邮件到java网站的特定mailid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



从过去很多天我都面临着关于servlet的问题。我是SMTP服务器类程序的新手。

我的问题是



我为一个使用java的动态网站开发了一个名为'contactus.html'的页面。从用户输入其详细信息和评论的联系人页面,这些详细信息和评论必须作为邮件发送到mailid。我尝试使用servlet,但我遇到的问题是,如果我在我的系统中阻止我的防病毒,那么只有我的邮件从我的网站发送到该特定的mailid。如果我的防病毒'打开',那么邮件不会发送,而是显示SMTP错误。



请给我一些关于这个问题的建议。

解决方案

许多ISP阻止端口25上的传出电子邮件。您可能必须切换到另一个端口(例如587或465)。联系您的ISP支持,看看他们是否阻止您的外发电子邮件端口。或者您可以将端口25添加到例外列表中。





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



另请阅读此处

http://www.authsmtp.com/faqs/faq-4 .html [ ^ ]

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.

解决方案

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[^]


这篇关于如何从html页面发送邮件到java网站的特定mailid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆