画像 (以前にクリップボードに保存したもの) をメール本文に貼り付ける必要があります。どうすればできますか?
新着SendKeys.Send("^v");
メール ウィンドウが開いた後に試してみましたが、機能しませんでした。
画像を直接に入れる方法はありoMailItem.Body = "";
ますか?
private void mailsenden() // Versendet die E-Mail
{
Bitmap bmp = new Bitmap(PanelErstmeldung.Width, PanelErstmeldung.Height);
PanelErstmeldung.DrawToBitmap(bmp, new Rectangle(0, 0, bmp.Width, bmp.Height));
Clipboard.SetDataObject(bmp);
Outlook.Application oApp = new Outlook.Application();
_MailItem oMailItem = (Outlook._MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
oMailItem.Subject = "Betriebsstörung im Bereich "+ comboBox1.SelectedItem;
oMailItem.To = "test@test.com";
oMailItem.CC = "test2@test2.com";
oMailItem.Body = ""; // PASTE THE BITMAP bmp HERE in the Body
oMailItem.Display(true); // Or CTRL+V it here in the opend Window
}