Hi,
We have a daily routine which generates a text file and runs xp_smtp_sendmail with the @messagefile argument to use the text file in the body of the email.
It has always worked fine but recently we have been receiving the following error when trying to run it:
Error: @messagefile "Drive\Filename.txt" file size is larger then allowed max size of 65536 byte
Funnily enough the file in question is 66,220 bytes so only just big enough to exceed this limit. The file in question is created from scratch on a daily basis so maybe this limit has always been in place and we are now exceeding it. My question is can we increase this limit somewhere and if so where? The SQL Statement I'm running is:
EXEC master.dbo.xp_smtp_sendmail
@To = 'recipients@domain.com',
@From = 'sender@domain.com',
@messagefile = 'Filepath\Filename.txt',
@subject='Test please ignore',
@server='smtp.servername.domain'
Thanks in advance for any suggestions anyone has!