- Jon Stoller
- PowerBuilder
- Sunday, 20 May 2018 06:13 PM UTC
QUESTION:
I created a report in PowerBuilder and I want the Power Script to send a copy if it as an email attachment.
Can I automatically send an email through PowerBuilder? Can I attach a file to the email?
If so, how is it done? Assume the filename and location is in "ls_folderfile". The other required information is also shown below.
Example:
String ls_folderfile, ls_email_addr, ls_subject, ls_email_text_message
integer li_return
ls_folderfile = "c:\pdf\pbreport.pdf"
idw_rpt.Object.DataWindow.Export.PDF.Method = XSLFOP!
li_return = idw_rpt.SaveAs(ls_folderfile, PDF!, true)
ls_email_addr = "jon@akaware.com"
ls_subject = "Report from AKA Software"
ls_email_text_message = "The attachment is a report from AKA Software"
//What do I do next to send an email to the above email address, with the above subject and text message, with the above file attached (ls_folderfile).
//Do you need the sender's email address?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.