次のコードでプラグインを使用して、Dynamics CRM 2011 UR13 で電子メールを送信しています。
// Create the e-mail message
Email email = new Email
{
To = new ActivityParty[] { toParty },
From = new ActivityParty[] { fromParty },
RegardingObjectId = new EntityReference(new_la.EntityLogicalName, la.Id),
Subject = emailsubject,
Description = emailbody, // html-content
DirectionCode = true
};
var _emailId = service.Create(email);
// Send the e-mail message
SendEmailRequest sendEmailreq = new SendEmailRequest
{
EmailId = _emailId,
TrackingToken = "",
IssueSend = true
};
電子メールは受信者に送信されていますが、コンテンツが html のみであるため、受信メール サーバーの spamfilter は適切ではありません。
X-Spam-Report:
* 1.6 HTML_IMAGE_ONLY_24 BODY: HTML: images with 2000-2400 bytes of words
* 0.0 HTML_MESSAGE BODY: HTML included in message
* 0.7 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
* 0.4 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML tag
電子メールが顧客のメールフィルターに詰まるリスクを最小限に抑えたい. 理想的には、電子メールはマルチパート、つまり text/plain と text/html 部分の両方として送信する必要がありますが、プレーン テキスト部分を個別に定義する方法がわかりません。
問題は、電子メール本文の 1 つの html 部分と 1 つのプレーン テキスト部分を指定する方法はあるのかということです。