ProxyProtocol Property

This property indicates the proxy server protocol (socks4/socks5/http).


Data Type: Long

Value Meaning
0 Socks4
1 (Default) Socks5
2 Http

Remarks

If SocksProxyServer is not specified, the direct connection will be used; otherwise the proxy connection will be used. We don't suggest that you use the proxy server except it is your only choice.

Usage Example:

[Visual Basic]
    
Private Sub SendEmail()
  Dim oSmtp As EASendMailObjLib.Mail
  Set oSmtp = New EASendMailObjLib.Mail
  'The license code for EASendMail ActiveX Object, 
  'for evaluation usage, please use "TryIt" as the license code.
  oSmtp.LicenseCode = "TryIt"

  oSmtp.ServerAddr = "mail.adminsystem.net"
  oSmtp.FromAddr = "test@adminsystem.net"
  oSmtp.AddRecipient "Support Team", "support@adminsystem.net", 0

  oSmtp.SocksProxyServer = "192.168.0.1"
  oSmtp.SocksProxyPort = 1080
  'if your proxy doesn't requires user authentication, please don't
  ' assign any value to ' SocksProxyUser and SocksProxyPassword properties 
  oSmtp.SocksProxyUser = "tester"
  oSmtp.SocksProxyPassword = "pass"
  oSmtp.ProxyProtocol = 1 'socks5 proxy
        
  oSmtp.Subject = "Test"
  oSmtp.BodyText = "Hello, this is a test...."
 
  If oSmtp.SendMail() = 0 Then
    MsgBox "Message delivered!"
  Else
    MsgBox oSmtp.GetLastErrDescription()
  End If
End Sub

See Also

SocksProxyServer Property
SocksProxyPort Property
SocksProxyUser Property
SocksProxyPassword Property