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'

  • 相关阅读:
    MVC总结
    Python在Linux | Windows中输出带颜色的文字的方法
    flushdns
    linux配置java环境变量(详细)
    ELK
    sed 时间段
    如何让root用户能直接进行ssh登录?
    rsync有两种常用的认证方式,另外一种则是ssh。
    windows rsync server
    awk
  • 原文地址:https://www.cnblogs.com/littleCode/p/3465088.html
Copyright © 2011-2022 走看看