- 论坛徽章:
- 0
|
各位高人:
您好!
在下用以下程序发送邮件,一切正常。 现想接收者能看到我的别名
(例如我的email是myemail@hotmail.com, 别名是”Goodboy",
当接收者看到邮件时,能看到我的别名Goodboy在发送者栏中,而
不是我的邮址) ,请问应该如何处理呢?
/////////////////////////////////////////////////////////////////
SmtpClient client = new SmtpClient("xxx.com");
client.from(“myemail@hotmail.com");
client.to("youremail@hotmail.com");
PrintStream message = client.startMessage();
message.println("Subject: this is the test");
message.println("To: " + to);
message.println("");
message.println("this is the msg");
client.closeServer();
/////////////////////////////////////////////////////////////////
万分感谢! |
|