Example #1
0
 private static EmailAccount CreatePCRemoteEmailAccount()
 {
     var account = new EmailAccount
                       {
                           AccountName = "your email address",
                           AccountPassword = "******",
                           IsEnableSSL = true,
                           Port = 587,
                           SmtpServer = "smtp server",
                           DisplayName = "PC遥控器"
                       };
     return account;
 }
Example #2
0
 public MailUtility(EmailAccount account)
 {
     _account = account;
 }
Example #3
0
 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;
 }