Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

Msg 22051 attachement File invalid in sp_send_dbmail

$
0
0

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



Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>