Hi All,
I am using sp_send_dbmail to send mail.
It is working and emails are being sent properly, but when I am using file_attachement it gives error
Msg 22051, Level 16, State 1, Line 0
Attachment file \\Server\Logs\LogFile.log is invalid.
Here Server is name of the server and I want to attach file "LogFile.log" in it.
When I am putting this path in Run window I can access the file i.e. file is accessible.
Please help me to send mail with attachment.
Please post if any clarification needed.
Thanks,
Vivek Singh