Hello, I'm using xp_sendmail in SQL 2005 and received this error "xp_sendmail: Invalid parameter '@ansi_attachment'" ; is this @ansi_attachment no longer supported in 2005
Sample Below
Select @SQLQuery = 'Declare @rc int
EXEC @rc = master.dbo.xp_sendmail
@recipients = N'''+@vTo+'''
,@message = N'''+@vMessage+'''
,@query = N'''+@vSQL+'''
,@attachments =''Prices Expiring.txt''
,@ansi_attachment=''TRUE''
,@copy_recipients = N'''+@vCC+'''
,@subject = N'''+@vSubject+'''
,@attach_results = ''TRUE''
,@width = 500
Sample Below
Select @SQLQuery = 'Declare @rc int
EXEC @rc = master.dbo.xp_sendmail
@recipients = N'''+@vTo+'''
,@message = N'''+@vMessage+'''
,@query = N'''+@vSQL+'''
,@attachments =''Prices Expiring.txt''
,@ansi_attachment=''TRUE''
,@copy_recipients = N'''+@vCC+'''
,@subject = N'''+@vSubject+'''
,@attach_results = ''TRUE''
,@width = 500