2012-11-05 1 views
2

sp-send_dbmail을 사용하여 전자 메일을 보내고 있습니다. 열이 텍스트로 정의 된 테이블에서 선택하여 @body 내용을 채 웁니다. 전자 메일의 실제 내용은 테이블 열에 저장됩니다.sp_send_dbmail을 사용하여 테이블에서 가져온 본문의 서식을 지정하는 방법

줄 바꿈 및 형식을 적절하게 표시하도록 전자 메일을 얻으려면 어떻게해야합니까? 나는 HTML과 TEXT 형식을 시도했다.

답변

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

관련 문제