I doesn't want to use the smtp of the dotnet class library, so I use jmail to send an email,but it can't send,I don't know why it doesn't work,it made an error like that "the message undelivered,all the server can't recevie ".The code as :
-----------------------------------------------------------------
jmail.Message MailObj=new jmail.MessageClass();
MailObj.From="
[email protected]";
MailObj.Logging=true;
MailObj.MailServerUserName="
[email protected]";
MailObj.MailServerPassWord="123456789";
MailObj.HTMLBody=" Welceom :";
MailObj.AppendHTML("Hey!");
MailObj.Subject="Hello";
MailObj.FromName="master";
MailObj.Priority=3;
MailObj.AddRecipient(to,"You ","A") ;
try
{
if(MailObj.Send("smtp.163.com",false))
{
return "Success";
}
else
{
return "Fail";
}
-----------------------------------
I use an Chinese SMTP Server,But it work normally before.
Tell me ,thank you