procedure TForm1.Button1Click(Sender: TObject);
begin
NMSMTP1.Host := 'smtp.vip.sina.com';
NMSMTP1.UserID := '';
NMSMTP1.Connect;
if NMSMTP1.Verify('') then
showmessage('success');
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
NMSMTP1.PostMessage.FromAddress := '';
NMSMTP1.PostMessage.FromName := '';
NMSMTP1.PostMessage.ToAddress.Text := '';
NMSMTP1.PostMessage.ToCarbonCopy.Text := '';
NMSMTP1.PostMessage.ToBlindCarbonCopy.Text := '';
NMSMTP1.PostMessage.Body.Text := 'safafdafdsaf';
NMSMTP1.PostMessage.Attachments.Text := '';
NMSMTP1.PostMessage.Subject := 'fafssafsaf';
NMSMTP1.PostMessage.LocalProgram := '';
NMSMTP1.PostMessage.Date := '20020202';
NMSMTP1.PostMessage.ReplyTo := '';
NMSMTP1.SendMail;
end;