[Migrated content. Thread originally posted on 27 July 2010]
Hello,I am trying to figure out how to attach a file to an email that is being send from my software product and could use some assistance.
In WORKING-STORAGE, the EMAIL-HANDLE is defined with a USAGE HANDLE OF SMTP.
Within code I have code like the following
MODIFY EMAIL-HANDLE
@Server = EMS-SERVER
@MailFrom = TCS-FROM-ADDR
@SendTo = WS-TO-EMAIL
@MessageSubject = TCS-SUBJECT
@MessageText = TEST-MESSAGE
then further down in the code, I have
MODIFY EMAIL-HANDLE
@RaiseError(0)
@SendEmail().
What I need to figure out is how to add an attachment (like a pdf report) to the email, that I am sending out. No matter what I do, I cannot for the life of me figure out how to send an email with an attachment.
If I could get some help to figure this out, my customers would be so happy, which would make my bosses happy :D
Thank you.



