Hi All, I have some query regarding sending the package logfile as email attachment. The scenario is i have a log file (text file) which will be created dynamically with datetime as filename. Now i need to send that logfile in the email as attachment regardless of the package status (success/failure). Any help is really appreciated.
Are you using DBmail or CDOSYS - Reference to the CDOSYS objects are at the following MSDN Web site: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/_cdosys_messaging.asp fyi. declare @Comment Varchar(1000) EXEC @hr = sp_OAMethod @iMsg, 'AddAttachment', @Comment out,'C: emp_ip.txt'