none
C#发邮件代码 RRS feed

  • 问题

  •   MailAddress from = new MailAddress("@qq.com", "aa", System.Text.Encoding.UTF8);

                    MailAddress to = new MailAddress("@hotmail.com");

                    MailMessage message = new MailMessage(from, to);

                    message.Body = "This is a test e-mail message sent by an application.";

                    SmtpClient client = new SmtpClient();

                    client.Host = "";//这个地方的IP地址应该怎样写?

                    client.Send(message);

    2010年4月15日 7:30

答案

全部回复