using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Abp.Domain.Repositories; using Abp.Timing; using JetBrains.Annotations; using VberTech.EmailHelpers; using VberTech.PlanTaskTrack; using VberTech.PlanTaskTrack.Dto; using Xunit; using Xunit.Abstractions; namespace VberTech.Test { public class UserAppService_Tests { //public IRepository PlanTaskRepository { get; set; } private readonly ITestOutputHelper _testOutputHelper; public UserAppService_Tests( ITestOutputHelper testOutputHelper) { //PlanTaskRepository = planTaskRepository; _testOutputHelper = testOutputHelper; } [Fact] public void OutInfo() { SmtpEmailSenderConfig config = new SmtpEmailSenderConfig("smtp.163.com", 25, "klzhangweiya@163.com", "Aa1234", "", false, true); SmtpEmailSenderConfig _config = new SmtpEmailSenderConfig("smtp.exmail.qq.com", 465, "zhangwy@iwbnet.com", "pCcxveGJS8w3vxN9", "", true, true); SmtpEmailSenderConfig _configH = new SmtpEmailSenderConfig("smtp-mail.outlook.com", 25, "zhangwy2018@hotmail.com", "Asia0812,./", "", false, true); EmailSendHelper.SendEmail("zhangwy2018@hotmail.com", "待办计划提醒","你的计划安排即将开始",displayName:"玮搏电子",smtpEmailSenderConfig: config); } } }