示例#1
0
        public static List <string> cancel_mail(string rec, string sub, string msg)
        {
            Getdataformail Mform = new Getdataformail();
            List <string>  data  = new List <string>();

            Mform.subjecttext.Text    = sub;
            Mform.messagetext.Text    = msg;
            Mform.recipientstext.Text = rec;
            data.Add(rec); //0
            data.Add(sub); //1
            data.Add(msg); //2
            return(data);
        }
示例#2
0
        //getting data to send email
        public static void  getemaildata(string rec, string sub)
        {
            //object of another form data getting form for sending email
            Getdataformail Mform = new Getdataformail();

            List <string> data = new List <string>();

            Mform.subjecttext.Text = sub;
            string msg = Mform.messagetext.Text;

            Mform.recipientstext.Text = rec;
            Mform.ShowDialog();
            data.Add(rec); //0
            data.Add(sub); //1
            data.Add(msg); //2
            //return data;
        }