没有smtp服务器啊
smtp.hotmail.com要是能用的邮件服务器

解决方案 »

  1.   

    hotmail没开放smtp服务器。
    你换一个你平时收发邮件的smtp服务器试试。
      

  2.   

    我用outlook试了一下,hotmail是用的http~
    听说javamail的还没有支持http的,是么??那请问yahoo.com.cn是用的什么啊??我只有hotmail的与yahoo.com.cn的~行么?
      

  3.   

    yahoo也联不上的,因为也没有提供此类服务。 :-(
      

  4.   

    那现在那个免费邮箱开放了smtp服务器啊~晕倒哦~
      

  5.   


    出现这种情况怎么办??
    我已经有验证代码了啊~Sending failed; nested exception is: class javax.mail.MessagingException: 553 You are not authorized to send mail as >, authentication is required Transport transport = mailSession.getTransport("smtp");
    transport.connect("smtp.tom.com","tyflyfish","我的密码");
    transport.send(msg,msg.getAllRecipients());  
      

  6.   

    如果你现在绝对什么都对,就是发不出去,这种时候一定是所用的方法不对,一般书上所讲的发送邮件的方法并不可靠,不知道你所的具体代码是什么,但首先你要知道很多电子邮局的smtp服务器要求我们通过验证,所以我觉得你用你的这种方式发邮件时,只能发给同类邮箱(即相同smtp的邮箱),甚至有时同类邮箱也发不出去。
      

  7.   

    刚弄了JAVAMAIL一下,给你一份代码,可以发的。<%@ page import=" javax.mail.*, javax.mail.internet.*, javax.activation.*,java.util.*" %> 
    <%@ page contentType="text/html;charset=GB2312" %>
    <%request.setCharacterEncoding("gb2312");%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>发送成功</title>
    </head>
    <body>
    <%
    try{
    //从html表单中获取邮件信息
    String tto=(String)request.getParameter("mail");//发信人
    String ttitle=(String)request.getParameter("caption");//标题
    String tcontent=(String)request.getParameter("body");//内容Properties props=new Properties();//也可用Properties props = System.getProperties(); 
    props.put("mail.smtp.host","smtp.21cn.com");//存储发送邮件服务器的信息
    props.put("mail.smtp.auth","true");//同时通过验证
    Session s=Session.getInstance(props);//根据属性新建一个邮件会话
    s.setDebug(true);MimeMessage message=new MimeMessage(s);//由邮件会话新建一个消息对象//设置邮件
    InternetAddress from=new InternetAddress("[email protected]");
    message.setFrom(from);//设置发件人
    InternetAddress to=new InternetAddress(tto);
    message.setRecipient(Message.RecipientType.TO,to);//设置收件人,并设置其接收类型为TO
    message.setSubject(ttitle);//设置主题
    message.setText(tcontent);//设置信件内容
    message.setSentDate(new Date());//设置发信时间//发送邮件
    message.saveChanges();//存储邮件信息
    Transport transport=s.getTransport("smtp");
    transport.connect("smtp.21cn.com","crhwan","guowen1984");//以smtp方式登录邮箱
    transport.sendMessage(message,message.getAllRecipients());//发送邮件,其中第二个参数是所有
    //已设好的收件人地址
    transport.close();%>
    <div align="center">
    <p><font color="#FF6600">发送成功!</font></p>
    <br>
    </div>
    <%
    }catch(MessagingException e){
    out.println(e.toString());
    }
    %>
    </body>
    </html>