public bool SendEmailInternally(frmEmail frmE, string subject, string invoiceNo, string email)
        {
            frmE.ReportViewer1 = this.reportViewer1;
            frmE.FileTitle     = "Rent for " + invoiceNo.ToStr();

            frmE.ToEmail    = email;
            frmE.txtTo.Text = email;


            if (subject.ToStr().Contains("||"))
            {
                try
                {
                    var arr = subject.ToStr().Split(new string[] { "||" }, StringSplitOptions.RemoveEmptyEntries);

                    subject           = arr[0];
                    frmE.txtBody.Text = arr[1];
                }
                catch
                {
                }
            }


            frmE.EmailSubject       = subject;
            frmE.txtSubject.Text    = subject;
            frmE.txtAttachment.Text = "Rent for " + invoiceNo;

            frmE.SendEmail(true);

            return(frmE.IsEmailSent);
            //         General.ShowEmailForm(reportViewer1, "Account Invoice # " + invoiceNo, email);
        }
コード例 #2
0
        public void SendEmailInternally(frmEmail frmE, string subject, string invoiceNo, string email)
        {
            frmE.ReportViewer1      = this.reportViewer1;
            frmE.FileTitle          = "Rent for " + invoiceNo.ToStr();
            frmE.EmailSubject       = subject;
            frmE.ToEmail            = email;
            frmE.txtTo.Text         = email;
            frmE.txtSubject.Text    = subject;
            frmE.txtAttachment.Text = "Rent for " + invoiceNo;

            frmE.SendEmail(true);

            //         General.ShowEmailForm(reportViewer1, "Account Invoice # " + invoiceNo, email);
        }