procedure TForm1.Button1Click(Sender: TObject);
var Temp : String;
mailMessage : TIdMessage;
SMTPConnection : TIdSMTP;
tempCharSet : String;
tempEncoding : char;
tempTransfer : TTransfer;
begin
Screen.Cursor := crHourGlass;//mouse bekleme
try
mailMessage := TIdMessage.Create;
SMTPConnection := TIdSMTP.Create;
mailMessage.ClearHeader;
// tempCharSet := 'ISO-8859-9';
// tempEncoding := 'B';
// tempTransfer := bit8;
// mailMessage.InitializeISO(tempTransfer,tempEncoding,tempCharSet);
mailMessage.ContentTransferEncoding := '8bit';
mailMessage.CharSet := 'ISO-8859-9';
with mailMessage do
begin
Clear;
From.Text := _fromEMail;
From.Name := _fromName;
ReplyTo.EMailAddresses := '';
Priority := mpNormal;
Recipients.EMailAddresses := _toEMail;
Subject := 'iiii ÜÜÜ SSS ÇÇÇ III GGG ÖÖÖ ööö ggg ççç sss';
end;
mailMessage.Body.Clear;
mailMessage.ContentType := 'text/html';
mailMessage.Body.Add('<html>');
mailMessage.Body.Add('<head></head>');
mailMessage.Body.Add('<body>');
TEMP := mailMessage.Subject;
mailMessage.Body.Add(TEMP);
mailMessage.Body.Add('</body>');
mailMessage.Body.Add('</html>');
SMTPConnection.Username := _userName;
SMTPConnection.Password := _userPass;
SMTPConnection.Host := _serverName;
SMTPConnection.Port := _serverPort;
{now we send the message}
SMTPConnection.Connect;
try
SMTPConnection.Send(mailMessage);
finally
SMTPConnection.Disconnect;
end;
finally
SMTPConnection.Free;
mailMessage.Free;
end;
Screen.Cursor := crDefault;//mosue normal
end;
CorrectCharacters.jpg
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE