zoukankan      html  css  js  c++  java
  • xp_smtp_sendmail参数

    Code Block

    ALTER TRIGGER [smallin].[trig_test]

    ON [smallin].[DATALIST]

    AFTER INSERT

    AS

    declare @rc int,

    @post bit,

    @pre bit

    SELECT @post = [POST], @pre = [PRE] FROM inserted

    IF @post = 1

    exec @rc = master.dbo.xp_smtp_sendmail

    @FROM = N'ln.li@mydomain.com',

    @FROM_NAME = N'Alert Mailer',

    @TO = N's.mallin@mydomain.com',

    @replyto = N'ln.li@mydomain.com',

    @CC = N'',

    @BCC = N'',

    @priority = N'NORMAL',

    @subject = N'This is post data',

    @message = N'Goodbye MAPI and Outlook',

    @messagefile = N'',

    @type = N'text/plain',

    @attachment = N'',

    @attachments = N'',

    @codepage = 0,

    @server = N'exchange.mydomain.com'

     

    ELSE IF @pre = 1

    exec @rc = master.dbo.xp_smtp_sendmail

    @FROM = N'ln.li@mydomain.com',

    @FROM_NAME = N'Alert Mailer',

    @TO = N's.mallin@mydomain.com',

    @replyto = N'ln.li@mydomain.com',

    @CC = N'',

    @BCC = N'',

    @priority = N'NORMAL',

    @subject = N'This is pre data',

    @message = N'Goodbye MAPI and Outlook',

    @messagefile = N'',

    @type = N'text/plain',

    @attachment = N'',

    @attachments = N'',

    @codepage = 0,

    @server = N'exchange.mydomain.com'

  • 相关阅读:
    linux 文件系统基本结构
    linux bash命令行基本操作
    U盘安装Centos6.2
    linux安装JDK
    linux重启和关闭系统命令
    eclipse安装反编译工具JadClipse
    Linux系统 Centos6 安装
    Linux 发展史
    计算机硬件
    网络 、osi 七层模型、tcp/ip 五层参考
  • 原文地址:https://www.cnblogs.com/littleCode/p/3465088.html
Copyright © 2011-2022 走看看