I Handled it with an Xbsic function. Not sure if this helps.
Code:
Function print_bill as c (e as p)
dim reportname as c
printoptions = ""
args = ""
options = ""
reportName = "Bill_Approve@[test]\\bill_approve.set"
filename = "C:\Users\rciadmin\Documents\Old_Alpha\Shipment_Database\Bill_Approve.pdf"
vReport = a5w_report_saveas(reportname,"PDF","","",filename,global_variables(),printOptions,args,options)
dim pm as P
dim ps as P
if (email_smtp_open(ps, "rcismtp.dtsehost.com", 2525, "XXXXX.com", "Your Password")) then
pm.to = "xxxx.com, xxxx.com,xxxx.com"
pm.from = "xxx@xxx.com"
pm.subject = "Wire/Checks are approved for "+ date() + " Approved by " + SESSION.CURRENTUSERNAME
pm.message = "Wire/Checks are approved "
pm.attachments = <<%a%
C:\Users\rciadmin\Documents\Old_Alpha\Shipment_Database\Bill_Approve.pdf
%a%
pm.html_message = "This is the message in HTML"
email_smtp_send(pm, ps)
end if
email_smtp_close(ps)
end function
Bookmarks