Private Sub Command1_Click() Dim oSmtp As New EASendMailObjLib.Mail oSmtp.LicenseCode = "TryIt" oSmtp.FromAddr = "xxxxx@xxxx.com" oSmtp.AddRecipientEx Text1.Text + "@xxxxx.lv", 0 oSmtp.Subject = "SmS" oSmtp.BodyText = Text2.Text oSmtp.ServerAddr = "smtp.xxxxxxx.com" oSmtp.ServerPort = "465" oSmtp.UserName = "xxx@xxxxx.com" oSmtp.Password = "xxxxxxxxx" oSmtp.SSL_init If oSmtp.SendMail() = 0 Then Text1.Text = "" Text2.Text = "" End If End Sub
c:\> regsvr32.exe EASendMail.dll
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)