![Ssl Ssl](/uploads/1/2/5/4/125440849/887438771.png)
Send Email over SSL in Delphi. Introduction Delphi - Send Email over SSL/TLS Setting - Example Delphi - Send email over implicit SSL on 465 port - Example Delphi - Send email over TLS (Explicit SSL) on 25 or 587 port - Example SMTP Setting for Gmail, Yahoo, Hotmail and Office 365; Send Email using Gmail in Delphi. Dec 10, 2016 Payload split delphi 7 dgn http injector. Sesuai untuk baca persamaan antara delphi 7 dgn http injector/eproxy.
2008-07-19 02:15:48 PMHi all.
IntroductionSSL and TLSSSL connection encrypts data between the SMTP component and SMTP server to protectsuser, password and email content in TCP/IP level. Now this technology is commonlyused and many SMTP servers are deployed with SSL such as Gmail, Yahoo and Hotmail.There are two ways to deploy SSL on SMTP server:.Explicit SSL (TLS)Using STARTTLS command to switch SSL channel on normalSMTP port (25 or 587);.Implicit SSLDeploying SSL on another port (465 or other port, you may queryit from your server administratorEASendMail SMTP component supports both ways.The connection can be specified by property. Please see the following examplecode.TLS 1.2TLS is the successor of SSL, EASendMail supports SSL 3.0/TLS1.0 - 1.2 very well.In EASendMail, SSLstarttls doesn’t mean TLS encryption, it means STARTTLS command in SMTP protocol.You don’t have to set any property to enable TLS 1.2 encryption.If your server requires TLS 1.2 encryption, TLS 1.2 encryption is used automatically.To enable TLS 1.2 on Windows 2008/2008 R2/7, please install this update.
// Send email by normal TCP/IP without SSL connection oSmtp. ServerAddr:= 'localhost'; oSmtp. ServerPort:= 25; // Send email by SSL connection with STARTTLS command switching oSmtp. ServerAddr:= 'localhost'; oSmtp.
ServerPort:= 25; oSmtp. ConnectType:= 1; // Send email by SSL connection with direct SSL. ServerAddr:= 'localhost'; oSmtp. ServerPort:= 465; oSmtp. ConnectType:= 1; // Send email by SSL/TLS connection with auto-detect. // If port is 25 or 587, STARTTLS TLS will be used; otherwise direct SSL will be used.
ServerAddr:= 'localhost'; oSmtp. ServerPort:= 465; oSmtp.
![Delphi Delphi](/uploads/1/2/5/4/125440849/313040330.png)
ConnectType:= 1; oSmtp. ServerAddr:= 'localhost'; oSmtp. ServerPort:= 25; oSmtp. ConnectType:= 1; // 4 means if server supports SSL/TLS connection, SSL/TLS is used automatically oSmtp. ServerAddr:= 'localhost'; oSmtp. ServerPort:= 25; oSmtp.
ConnectType:= 4; oSmtp. ServerAddr:= 'localhost'; oSmtp. ServerPort:= 587; oSmtp. ConnectType:= 4.