예제 #1
0
파일: Main.cs 프로젝트: terryso/PCRemote
 private static EmailAccount CreatePCRemoteEmailAccount()
 {
     var account = new EmailAccount
                       {
                           AccountName = "your email address",
                           AccountPassword = "******",
                           IsEnableSSL = true,
                           Port = 587,
                           SmtpServer = "smtp server",
                           DisplayName = "PC遥控器"
                       };
     return account;
 }
예제 #2
0
 public MailUtility(EmailAccount account)
 {
     _account = account;
 }
예제 #3
0
파일: Main.cs 프로젝트: terryso/PCRemote
 private CommandContext CreateCommandContext(string weiboId, IntPtr handle, EmailAccount account)
 {
     var context = new CommandContext
                       {
                           WeiboId = weiboId,
                           WeiboService = _service,
                           Handle = handle,
                           SendPhotoByEmail = Settings.Default.SendPhotoByEmail,
                           MailUtility = new MailUtility(account),
                           To = Settings.Default.MyEmailAddress,
                           DownloadPath = Settings.Default.DownloadPath
                       };
     return context;
 }