EldoS | Feel safer!

Software components for data protection, secure storage and transfer


Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
Posted: 02/09/2010 23:57:49
by Eugene Marmiy (Basic support level)
Joined: 05/06/2009
Posts: 26

I am trying send, but getting an error:

for command MAIL FROM:<myemail@gmail.com> SIZE=326 (error code is 530)

  smtp: TElSMTPClient;
  MailMessage: TElMessage;
  //setup SMTP
  smtp := TElSMTPClient.Create(Owner);
  SMTP.Address := ledHost.Text;
  SMTP.Port := 587;
  smtp.SSLMode := smExplicit;
  MailMessage := TElMessage.Create();
  MailMessage.From.AddAddress(ledFrom.Text, ledFrom.Text);
  MailMessage.To_.AddAddress(ledTo.Text, ledTo.Text);
      SMTP.Username := 'MyEmail@gmail.com';
      SMTP.Password := 'MyPassword';


    except on E:Exception do
      StatusMemo.Lines.Insert(0, 'ERROR: ' + E.Message);
    if SMTP.Active then SMTP.Close;

PS: Through delphi\indy10 a sended, but for it is necessary *.dll

What need else?
Thank you.
Posted: 02/10/2010 00:42:10
by Eugene Mayevski (EldoS Corp.)

1) In Login method you must provide the host name of *your* computer. You are not smtp.gmail.com and the server denies your connection.
2) GMail requires use of TLS. I don't remember the details exactly, but if memory serves, you need to connect to port 495 of SMTP server using implicit TLS.

Sincerely yours
Eugene Mayevski



Topic viewed 856 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!