Sending-email-messages-to-Gmail-using-SMTP-protocol - WeOnlyDo Software example code



All

wodCrypt (12)
wodSSH (10)
wodSFTP (23)
wodSSHServer (1)
wodSSHTunnel (11)
wodSSHpackage
wodSFTPdll

wodSSH.NET (10)
wodSFTP.NET (24)
wodFtpDLX.NET (22)
wodWebServer.NET (10)

wodAppUpdate (13)
wodHttpDLX (8)
wodFtpDLX (22)
wodTelnetDLX
wodFTPServer (3)
wodWebServer (10)
wodVPN
wodXMPP (13)
All ** [Visual Basic] ** [C#] ** [VB.NET] **

Sending e-mail messages to Gmail using SMTP protocol
VB code
Set wodSmtp1 = New wodSmtpCom
    
'First we set up the hostname, port, login, password and security options.
With wodSmtp1
    .Login = "user@gmail.com"
    .Password = "password"
    .Authentication = AuthAuto
    .Hostname = "smtp.gmail.com"
    .Security = SecurityImplicit
    .Port = 465
End With

'after everything is set to connect to the Gmail SMTP server, you only need to call one method...
wodSmtp1.SendSimple "from@someone.com", "to@gmail.com", "this is subject", "body text"
    
'..and that is it! Your e-mail is on its way.