如果你自己开邮箱服务器,而且有固定ip的话,写你自己的 ip地址:端口 就可以了
用asp.net的话。声明了一个MailMessage()类之后,SmtpSever="localhost"
不是的话,网站的smtp地址是有公布的请赐教。

解决方案 »

  1.   

    如果我的发邮件地址是 [email protected] 那么请问我的 SmtpMail.SmtpServer= 什么啊? 我前面所说的smart host(中继主机)设置又是什么啊?请明示!!
      

  2.   

    jimmych希望你有什么进展就马上告诉我!
      

  3.   

    其实原理和你设置outlook一样.
    SMTP服务器:smtp.163.net 这个应该就是你的smart host,而这个也就是SmtpServer
    POP3服务器:pop.163.net 
        或 163.net  
    你自己可以去看看http://bjpic.163.net/help/       //这个是163.net的help
    http://aspalliance.com/das/tutorial/email.aspx  // 这个是.net下发送邮件的coding.我可以发出去,但是收不到。.困惑中。(iis里面的邮箱服务器)
    也盼赐教。
      

  4.   

    要引用using System.Web.Mail;
    try
    {
    MailMessage myMail = new MailMessage();
    myMail.From = "[email protected]";
    myMail.To   = "[email protected]";
    myMail.Subject = "Mail Test";
             myMail.Body    = "<html><body>UtilMailMessage001 -                           success</body></html>";
             SmtpMail.SmtpServer = "TestMailServer";
    SmtpMail.Send( myMail );
    lbMsg.Text = "Send success!";
    }
    catch( Exception ex)
    {
    lbMsg.Text = ex.Message;
    }
      

  5.   

    cdo.message 是什么来的啊 请高手指点 因为我就是这个问题没弄清楚 所以发送不了email啊 谢谢你 catchcat(cat)但是我已经设置好了啊 就是把smtp中的smart host 与 SmtpServer 写成一样的smtp.163.net 但是还是send不到 我想应该是cdo.message 的问题 请再次明示 !!
      

  6.   

    局域网里面可以通过http代理直接 连上比如smtp.163.net的服务器吗??
    敬请回答,谢谢
      

  7.   

    hi: 
    DannelMos(爱蚊),cdo.message在什么地方?
    我也有个问题,你应该可以有outlook发送邮件把。如果你的邮箱服务器不是local的,
    我猜想你需要用户和密码验证才能使用,可是我也不知道DotNet下有关的设置。
    等高手解救2。。呵呵btw ,To
    VCnst(ToBe Higher):可以的,我以前在学校时候用foxmail的时候,用代理,不过好象还要加上Socket这个东东才行.
      

  8.   

    这是vb 的,发给自己的:Imports System.Web.Mail
    .....
            
            Dim emailaddress As String
            Dim objMsg As New MailMessage()
                 
                Try
                    emailaddress = "[email protected]"
                    password = "abc"
                    objMsg.To = emailaddress
                    objMsg.From = emailaddress                objMsg.Priority = MailPriority.High
                    objMsg.Subject = "this is subject"
                    objMsg.Body = "this is body"
                    SmtpMail.SmtpServer = "localhost"                SmtpMail.Send(objMsg)
                    objMsg = Nothing
    ........                Catch ex As Exception
                    .......              
                End Try       .......
      

  9.   

    在默认SMTP虚拟服务器的属性\中继\中继限制对话框中,选择“仅以下列表除外”
      

  10.   

    我是在校的学生 因为学校网络限制 我不能通过outlook收发邮件 这样是不是说smtp不能用啊? 再请问----失败:System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040213): The transport failed to connect to the server. --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(String from, String to, String subject, String messageText) at ASP.email_aspx.Mail_Send(Object src, EventArgs e) in c:\inetpub\wwwroot\e-mail\email.aspx:line 14     这是什么意思啊?