// tag::buildAndSendMail[]
 public void DoBuildAndSendMail(MailMan m, MailAddress mAddress,
     MailBody mBody) {
     // Build the mail
     Mail mail = new Mail(mAddress, mBody);
     // Send the mail
     m.SendMail(mail);
 }
Ejemplo n.º 2
0
        // tag::buildAndSendMail[]
        public void DoBuildAndSendMail(MailMan m, MailAddress mAddress,
                                       MailBody mBody)
        {
            // Build the mail
            Mail mail = new Mail(mAddress, mBody);

            // Send the mail
            m.SendMail(mail);
        }