AIM Aegis Implicit Mail を使用して Implicit ssl メールを送信しています。
メール メッセージで件名と本文を使用する場合は問題ありませんが、別のビューを使用するとメールの本文が空になります。この別のビューのセットアップは、メールメッセージで動作し、受信クライアントに応じて html とテキスト本文を持ちますが、デバッグ コードでは問題ないように見えますが、メールボックスで受信すると空である MimeMailMessage を使用する必要があります。
コードは次のとおりです。
string plainTextBody = "Welkom.";
AlternateView plainTextView =
AlternateView.CreateAlternateViewFromString(
plainTextBody, null, MediaTypeNames.Text.Plain);
plainTextView.ContentType = new System.Net.Mime.ContentType("text/plain");
mail.AlternateViews.Add(plainTextView);
string htmlBody = @"<html><body><img src=""cid:logo""><br /> Welkom </body></html>";
AlternateView htmlView = AlternateView.CreateAlternateViewFromString(htmlBody, null, MediaTypeNames.Text.Html);
htmlView.ContentType = new System.Net.Mime.ContentType("text/html");
string imageSource = Path.Combine(HttpRuntime.AppDomainAppPath, @"Content\Images\Logob.png");
LinkedResource PictureRes = new LinkedResource(imageSource, MediaTypeNames.Image.Jpeg);
PictureRes.ContentId = "logo";
htmlView.LinkedResources.Add(PictureRes);
mail.AlternateViews.Add(htmlView);