[Solved] XMailer: can't send mail on Linux lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- lainz · 2018-03-01 15:14 Hi, anyone using XMailer to send mails on Linux? There is a configuration that must be done before using it? https://github.com/MFernstrom/xmailer/ I get an exception: QuoteSSL error: TSendMail I have open ssl installed. It works fine on macOS and Windows, but not on Linux (Ubuntu). I'm using Lazarus trunk (1.9) fpc trunk (3.1.1) This is my code: 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 // real mail addressesRECIBE = 'aaa@bbb.com';ENVIA = 'aaa@ccc.com ';ENVIA_USUARIO = 'aaa@ccc.com';ENVIA_PASSWORD = 'password';ENVIA_HOST = 'smtp.live.com';ENVIA_PORT = '587';    procedure TfrmSoporte.btnEnviarClick(Sender: TObject);var  Mail: TSendMail;begin  if not IsValidEmail(edCorreoElectronico.Text) then  begin    ShowMessage(rsIngreseCorreoValido);    exit;  end;  Mail := TSendMail.Create;  try    try      // Mail      Mail.Sender := ENVIA;      Mail.Receivers.Add(RECIBE);      Mail.Subject := 'Soporte ' + edUsuario.Text;      Mail.Message.Add('Empresa: ' + edEmpresa.Text);    Mail.Message.Add('Usuario: ' + edUsuario.Text);      Mail.Message.Add('Nombre: ' + edNombre.Text);      Mail.Message.Add('Correo Electrónico: ' + edCorreoElectronico.Text);    Mail.Message.Add('');      Mail.Message.Add('Detalle: ');      Mail.Message.AddStrings(mDetalle.Lines);      if (captura <> '') and (FileExists(captura)) then        Mail.Attachments.Add(captura);      if (config <> '') and (FileExists(config)) then        Mail.Attachments.Add(config);      // SMTP      Mail.Smtp.UserName := ENVIA_USUARIO;      Mail.Smtp.Password := ENVIA_PASSWORD;      Mail.Smtp.Host := ENVIA_HOST;      Mail.Smtp.Port := ENVIA_PORT;      //Mail.Smtp.SSL := True;      mail.Smtp.FullSSL := False;      Mail.Smtp.TLS := True;      Mail.Send;      ShowMessage(rsCorreoEnviado);      Self.Close;    except      on E: exception do        ShowMessage(rsCorreoNoEnviado + LineEnding + '(' + E.Message + ')');    end;  finally    Mail.Free;  end;end; ---------------------------------------------------------------------- Trenatos · 2018-03-01 16:27 Which version of Linux are you running? Your issue report on GitHub mentions Ubuntu, but which version and which architecture? I'll see if I can take a stab at it, but Silvio Clecio is the creator of XMailer, I just wanted to retain a copy as he said he was going to remove it from his repos. ---------------------------------------------------------------------- lainz · 2018-03-01 16:42 Quote from: Trenatos on March 01, 2018, 05:27:42 pmWhich version of Linux are you running? Your issue report on GitHub mentions Ubuntu, but which version and which architecture? I'll see if I can take a stab at it, but Silvio Clecio is the creator of XMailer, I just wanted to retain a copy as he said he was going to remove it from his repos. Hi, is Ubuntu 17.10 64 bit , tested on a VM. But I also tested on a fresh Elementary OS 64 bit in another VM and did not work as well. Ok, just if you can, if not there is no problem. This has been added to Online Package Manager today, so it can be installed from Lazarus directly also. ---------------------------------------------------------------------- lainz · 2018-03-01 17:07 Solved, it needs libssl-dev installed in order to work. ---------------------------------------------------------------------- Trenatos · 2018-03-01 17:18 Great! Thanks for sharing the solution as well. I'll put a note on the GitHub about it as well ---------------------------------------------------------------------- lainz · 2018-03-01 17:19 Quote from: Trenatos on March 01, 2018, 06:18:33 pmGreat! Thanks for sharing the solution as well. I'll put a note on the GitHub about it as well It's already there! But I did not read the readme fully ---------------------------------------------------------------------- Trenatos · 2018-03-01 17:23 Haha, no I just added it a few minutes ago