Imports Dart.Mail
Imports Dart.Mail.Smtp
' 接続するSMTPサーバーとポート番号を指定します。
Smtp1.Session.RemoteEndPoint = New Dart.Mail.IPEndPoint("smtp.myMailServer.com", Smtp.GetDefaultPort(Smtp1.Session))
' 認証が必要な場合には、ユーザー名とパスワードも設定します。
Smtp1.Session.Username = "myUsername"
Smtp1.Session.Password = "myPassword"
' プロキシサーバーのサーバー名とポート番号を指定します。
Smtp1.Session.Proxy.RemoteEndPoint = New Dart.Mail.IPEndPoint("myProxyServer", 80)
' 認証が必要な場合には、ユーザー名とパスワードも設定します。
Smtp1.Session.Proxy.Username = "myProxyUsername"
Smtp1.Session.Proxy.Password = "myProxyPassword"
' ログイン認証を指定します。
Smtp1.Session.Authentication = Authentication.Login
using Dart.Mail;
using Dart.Mail.Smtp;
// 接続するSMTPサーバーとポート番号を指定します。
smtp1.Session.RemoteEndPoint = new Dart.Mail.IPEndPoint("smtp.myMailServer.com", Smtp.GetDefaultPort(smtp1.Session));
// 認証が必要な場合には、ユーザー名とパスワードも設定します。
smtp1.Session.Username = "myUsername";
smtp1.Session.Password = "myPassword";
// プロキシサーバーのサーバー名とポート番号を指定します。
smtp1.Session.Proxy.RemoteEndPoint = new Dart.Mail.IPEndPoint("myProxyServer", 80);
// 認証が必要な場合には、ユーザー名とパスワードも設定します。
smtp1.Session.Proxy.Username = "myProxyUsername";
smtp1.Session.Proxy.Password = "myProxyPassword";
// ログイン認証を指定します。
smtp1.Session.Authentication = Authentication.Login;