SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


master.dbo.xp_smtp_sendmail ( sql 2000)


master.dbo.xp_smtp_sendmail ( sql 2000)

Author
Message
SQL Galaxy
SQL Galaxy
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6777 Visits: 3501
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
anuvenugopal88
anuvenugopal88
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 0
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search