예제 #1
0
파일: Email.cs 프로젝트: wjkong/MicNets
        public bool SendThroughWebService()
        {
            try
            {
                EmailWS.EmailServer oService = new EmailWS.EmailServer();
                EmailWS.Email oInfo = new EmailWS.Email();
                oInfo.From = base.From;
                oInfo.To = base.To;
                oInfo.Subject = base.Subject;
                oInfo.Body = base.Body;
                oInfo.NPriority = MailPriority.Low.ToString();
                string password = ConfigurationSettings.AppSettings["ServicePassword"].ToString();

                return oService.SendEmail(oInfo, password);
            }
            catch (Exception exception)
            {
                string message = exception.Message;
                return false;
            }
        }
예제 #2
0
파일: Reference.cs 프로젝트: wjkong/MicNets
 /// <remarks/>
 public void SendEmailAsync(Email oInfo, string password) {
     this.SendEmailAsync(oInfo, password, null);
 }
예제 #3
0
파일: Reference.cs 프로젝트: wjkong/MicNets
 /// <remarks/>
 public void SendEmailAsync(Email oInfo, string password, object userState) {
     if ((this.SendEmailOperationCompleted == null)) {
         this.SendEmailOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendEmailOperationCompleted);
     }
     this.InvokeAsync("SendEmail", new object[] {
                 oInfo,
                 password}, this.SendEmailOperationCompleted, userState);
 }
예제 #4
0
파일: Reference.cs 프로젝트: wjkong/MicNets
 public bool SendEmail(Email oInfo, string password) {
     object[] results = this.Invoke("SendEmail", new object[] {
                 oInfo,
                 password});
     return ((bool)(results[0]));
 }