master.dbo.xp_smtp_sendmail ( sql 2000)

  • declare @rc int

    exec @rc = master.dbo.xp_smtp_sendmail

    @FROM= N'jgsrvr28',

    @FROM_NAME= N'JGSERVER28',

    @TO= N'',

    @replyto = N'',

    @cc= N'',

    @BCC= N'',

    @priority= N'NORMAL',

    @subject= N'',

    @message= N'',

    @messagefile= N'D:\SQLmail\DB_Bkp\DB Maintenance Plan14_200810111104.txt',

    @type= N'text/plain',

    @attachment= N'',

    @attachments= N'',

    @codepage= 0,

    @server = N'IP'

    select RC = @rc

    go

    Above mail alert working fine, so i need, whenever jobs started that time current date report file should added in messagefile automatically

    Please help me, thanks in advance

  • while using @attachments parameter , am getting an error has d file does not exist .. but d query s executed suc essfully.. but mails not sent

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply