Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
単一のメールを複数のユーザーに送信したい。データテーブル内のすべてのメールアドレスを抽出しましたが、このデータテーブルを BCC または CC にメールで渡すにはどうすればよいか考えています。
あなたはこのようなことをすることでそれを達成します
MailMessage MyMail = new MailMessage(); MyMail.From = "some email address"; foreach(DataRow row in dataTable1.Rows) { MyMail.To += row["email"] + ";" }