SQL Server 2005发邮件的代码exec msdb.dbo.sp_send_dbmail
SQL Server 2005发邮件的代码        
@recipients= 'rockniu@gmail.com',
SQL Server 2005发邮件的代码        
@copy_recipients = 'rock.niu@axisoft.com.hk',
SQL Server 2005发邮件的代码        
@profile_name = 'PBCRM_Mail_Account',
SQL Server 2005发邮件的代码        
@subject = 'Database mail test',
SQL Server 2005发邮件的代码        
@body = '<h1>Database mail test</h1>',
SQL Server 2005发邮件的代码        
@body_format = 'HTML' ;
SQL Server 2005发邮件的代码

注意事项:

要确保相应的Profile已经建立,database mail功能要打开。

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2021-11-03
  • 2021-12-03
  • 2021-07-30
  • 2021-06-03
猜你喜欢
  • 2021-12-09
  • 2021-04-29
  • 2021-10-28
  • 2022-02-10
  • 2021-05-17
相关资源
相似解决方案