I am using Exec msdb.dbo.sp_send_dbmail
in class file using string builder to append the from and To address.NowI need to attache the file which will be in Local solution folder (Within the solution I have Created the folder)
strSql.Append("Exec msdb.dbo.sp_send_dbmail @profile_name='SLAToolProfile',");strSql.Append("@recipients='");
strSql.Append(eMailToaddresses);
strSql.Append("',@file_attachments='");
string Path = "~/Material/study material.doc";
strSql.Append(Path);
when I using the above format I got file attached Error .How do I mention the path which should be in local folder within the solution?