Home > Database > Mysql Tutorial > body text

sqlserver 发送邮件, Foxmail 乱码问题

WBOY
Release: 2016-06-07 15:40:00
Original
1509 people have browsed it

在使用SqlServer 邮件 系统 发送 邮件 ,发现收到后出现乱码 问题 如下图: 查阅资料无结果,偶然间发现SqlServer自带的测试 邮件 就没有出现乱码,经过尝试,发现了其中的奥秘!我擦!主题是中文就不会乱码! 语句: EXECUTE [msdb].[dbo].[sp_send_dbmail]

在使用SqlServer 邮件系统发送邮件,发现收到后出现乱码问题

如下图:

sqlserver 发送邮件, Foxmail 乱码问题

查阅资料无结果,偶然间发现SqlServer自带的测试邮件就没有出现乱码,经过尝试,发现了其中的奥秘!我擦!主题是中文就不会乱码!

sqlserver 发送邮件, Foxmail 乱码问题

语句:

EXECUTE [msdb].[dbo].[sp_send_dbmail]
    @profile_name = 'bdpicc'
    ,@recipients  = 'xxx@bdpicc.com;xxx@bdpicc.com'
    ,@body        = 'S'
    ,@subject     = '主题是中文就不会乱码'


EXECUTE [msdb].[dbo].[sp_send_dbmail]
    @profile_name = 'bdpicc'
    ,@recipients  = 'xxx@bdpicc.com'
    ,@body        = '主题不是中文内容是中文'
    ,@subject     = 'S'
Copy after login



source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!