Problem in sending email lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- egsuh · 2019-10-15 06:37 Hello, I'm trying to send email using synapse. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TEmailForm.Button1Click(Sender: TObject);begin     if SendTo('info@brio.co.kr', leTo.Text,                leSubject.Text,              'webmail.brio.co.kr',                Memo1.Lines)     then ShowMessage('Mail Sent')     else ShowMessage('Failed');end;  leTo.Text is the recipients' addresses. The mail is sent only when the domain of recipients are the same as that of sender. so I can send email to abc@brio.co.kr, but not to  any other address like def@gmail.com. Any possible reason? It may be not the problem of Lazarus or Synapse. Instead it may come from mail server (in this case webmail.brio.co.kr).  Interesting thing is that I could send email to other addresses in the morning. ---------------------------------------------------------------------- egsuh · 2019-10-15 06:54 I think I found the reason --- some mail servers require SMTP authentification. So I have to use SendToEx instead of SendTo.