We are unable to send an excel file as attachment using dbmail.
The above script results in
However, we can send a different excel file with exact same script (just change file name to e4345pc1.xls) in the same folder with no problems (mail queued). Files have same permissions; only difference is that the first file is 1296 KB and the 2nd is 219 KB. However, the databasemail is configured for max file size of 7,000,000, well above 1296 KB.
Any ideas on how to get this to work?