2

sp-send_dbmail を使用して電子メールを送信しています。列がテキストとして定義されているテーブルから選択することで、@body コンテンツを入力します。電子メールの実際の内容は、テーブル列に保存されます。

電子メールに改行を表示し、それに応じて書式を設定するにはどうすればよいですか? HTMLとTEXTのフォーマットを試しました。

4

1 に答える 1

1

body_formatプロパティが に設定されていることを確認してくださいHTML

[ @body_format= ] 'body_format'

Is the format of the message body. The parameter is of type varchar(20), 
with a default of NULL. When specified, the headers of the outgoing message 
are set to indicate that the message body has the specified format. The 
parameter may contain one of the following values:

    TEXT

    HTML

Defaults to TEXT.

ソース: http://msdn.microsoft.com/en-us/library/ms190307.aspx

于 2012-11-05T13:40:06.663 に答える